Skip to content

Commit

Permalink
fix: ambiguous orgUid sqlite issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Nov 18, 2022
1 parent 8a29441 commit f13f426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/units/units.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class Unit extends Model {
}

if (orgUid) {
sql = `${sql} AND orgUid = :orgUid`;
sql = `${sql} AND units_fts.orgUid = :orgUid`;
}

let replacements = { search: searchStr, orgUid };
Expand Down

0 comments on commit f13f426

Please sign in to comment.