Skip to content

Commit

Permalink
Add all zeroes check
Browse files Browse the repository at this point in the history
  • Loading branch information
HazemElAgaty committed Jul 19, 2018
1 parent 83862d2 commit da7587d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = (bookshelf, settings) => {
: this.softDelete;

if (softDelete && !options.withDeleted) {
//Add a check for all zeroes default value.
options.query
.where(
`${result(this, "tableName")}.${settings.field}`,
Expand Down

0 comments on commit da7587d

Please sign in to comment.