Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Nov 8, 2024
1 parent fb5ad07 commit 508a4db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/account-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ export function clearExpiredSessions() {
).changes;

console.log(`Deleted ${deletedSessions} old sessions`);
}
}
6 changes: 0 additions & 6 deletions src/app-sync.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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');
Expand Down

0 comments on commit 508a4db

Please sign in to comment.