From 802e26644d13d0b077dc1d6f24496a4536160588 Mon Sep 17 00:00:00 2001 From: wajeht <58354193+wajeht@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:28:21 -0400 Subject: [PATCH] fix: bug causing recovery query to not return --- src/apps/api/v1/variables/variables.queries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/api/v1/variables/variables.queries.js b/src/apps/api/v1/variables/variables.queries.js index 343f4f12..898a386a 100644 --- a/src/apps/api/v1/variables/variables.queries.js +++ b/src/apps/api/v1/variables/variables.queries.js @@ -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,