Skip to content

Commit

Permalink
fix: bug causing recovery query to not return
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Sep 15, 2022
1 parent ce07b92 commit 802e266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/api/v1/variables/variables.queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export async function getRecovery(user_id, pagination = { perPage: null, current
.fullOuterJoin('sessions as ss', 'ss.id', 'v.session_id')
.where({ 'v.user_id': user_id })
.andWhere({ 'v.deleted': false })
.andWhereRaw(`v.deleted = 'false' or ss.deleted = 'false'`)
.andWhereRaw(`v.deleted = false or ss.deleted = false`)
.orderBy('v.created_at', 'desc')
.paginate({
...pagination,
Expand Down

0 comments on commit 802e266

Please sign in to comment.