Skip to content

Commit

Permalink
fix(Accounts): Handle pluginInstanceId = "null" correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Sep 8, 2020
1 parent 540f396 commit bc9c3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class AccountLogic extends BaseLogic {
if (k === 'document') {
sql.include[0].where = {id};
}
else if (k === 'pluginInstance' && !id) {
else if (k === 'pluginInstance' && (!id || id === 'null')) {
sql.where = sql.where || {};
sql.where.pluginInstanceId = null;
}
Expand Down

0 comments on commit bc9c3ef

Please sign in to comment.