From 508a4dbe2517c075d5c61b1982335a0507f11d20 Mon Sep 17 00:00:00 2001 From: Leandro Menezes Date: Fri, 8 Nov 2024 14:12:28 -0300 Subject: [PATCH] linter --- src/account-db.js | 2 +- src/app-sync.test.js | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/account-db.js b/src/account-db.js index 2ba706154..e4a9e3dde 100644 --- a/src/account-db.js +++ b/src/account-db.js @@ -185,4 +185,4 @@ export function clearExpiredSessions() { ).changes; console.log(`Deleted ${deletedSessions} old sessions`); -} \ No newline at end of file +} diff --git a/src/app-sync.test.js b/src/app-sync.test.js index bc9e7ea81..0b77ebeed 100644 --- a/src/app-sync.test.js +++ b/src/app-sync.test.js @@ -6,7 +6,6 @@ import getAccountDb from './account-db.js'; import { SyncProtoBuf } from '@actual-app/crdt'; import crypto from 'node:crypto'; - const ADMIN_ROLE = 'ADMIN'; const createUser = (userId, userName, role, owner = 0, enabled = 1) => { @@ -16,11 +15,6 @@ const createUser = (userId, userName, role, owner = 0, enabled = 1) => { ); }; -const setSessionUser = (userId) => { - getAccountDb().mutate('UPDATE sessions SET user_id = ?', [userId]); -}; - - describe('/user-get-key', () => { it('returns 401 if the user is not authenticated', async () => { const res = await request(app).post('/user-get-key');