From 557b488e0a9c20ac0ede03123c53bed9d68c4e78 Mon Sep 17 00:00:00 2001 From: lelemm Date: Mon, 18 Nov 2024 14:46:36 -0300 Subject: [PATCH] Update jest.global-setup.js Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- jest.global-setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.global-setup.js b/jest.global-setup.js index 6b72e3834..524054dd5 100644 --- a/jest.global-setup.js +++ b/jest.global-setup.js @@ -50,7 +50,7 @@ const setSessionUser = (userId, token = 'valid-token') => { throw new Error(`Session not found for token: ${token}`); } - getAccountDb().mutate('UPDATE sessions SET user_id = ? WHERE token = ?', [ + db.mutate('UPDATE sessions SET user_id = ? WHERE token = ?', [ userId, token, ]);