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, ]);