Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
demoManito committed Oct 10, 2024
1 parent 60a9b07 commit 55fa9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finisher_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ func (db *DB) Count(count *int64) (tx *DB) {
// Exists checks if there is any record matching the given conditions
func (db *DB) Exists() (bool, error) {
var exist bool
return exist, db.Session(&Session{NewDB: true}).
return exist, db.getInstance().
Raw("SELECT ? AS exist", Expr("EXISTS(?)", db.Select("1"))).
Pluck("exist", &exist).Error
}
Expand Down

0 comments on commit 55fa9ec

Please sign in to comment.