From e8f00e112175079ef1573b9235c0c8cd3ff94bca Mon Sep 17 00:00:00 2001 From: Daniel Salazar Date: Sat, 29 Nov 2025 13:18:37 -0800 Subject: [PATCH] fix: typo in dbkvStore (#2066) --- eslint.config.js | 9 +++++++++ .../src/services/repositories/DBKVStore/DBKVStore.ts | 2 +- tsconfig.json | 4 +++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 64891a3b4..790e42f60 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -58,6 +58,15 @@ export const rules = { }; export default defineConfig([ + { + files: ['**/*.d.ts'], + parserOptions: { + project: null, + }, + rules: { + '@typescript-eslint/no-unused-vars': 'off', // Disable rules requiring type checking + }, + }, // TypeScript support for tests { files: ['**/*.test.ts', '**/*.test.mts', '**/*.test.setup.ts'], diff --git a/src/backend/src/services/repositories/DBKVStore/DBKVStore.ts b/src/backend/src/services/repositories/DBKVStore/DBKVStore.ts index 93c0b4976..760392380 100644 --- a/src/backend/src/services/repositories/DBKVStore/DBKVStore.ts +++ b/src/backend/src/services/repositories/DBKVStore/DBKVStore.ts @@ -56,7 +56,7 @@ export class DBKVStore implements IDBKVStore { const rows = app ? await this.#db.read('SELECT kkey, value, expireAt FROM kv WHERE user_id=? AND app=? AND kkey_hash IN (?)', [user.id, app.uid, key_hashes]) : await this.#db.read(`SELECT kkey, value, expireAt FROM kv WHERE user_id=? AND (app IS NULL OR app = '${GLOBAL_APP_KEY}') AND kkey_hash IN (${key_hashes.map(() => '?').join(',')})`, - [user, key_hashes]); + [user.id, key_hashes]); const kvPairs: Record = {}; rows.forEach((row: { kkey: string, value: string }) => { diff --git a/tsconfig.json b/tsconfig.json index 32a79b2e0..b4e672e07 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,9 @@ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "skipLibCheck": true, - "sourceMap": true + "sourceMap": true, + "removeComments": true, + "noEmitOnError": true, }, "exclude": [ "**/*.test.ts",