fix: typo in dbkvStore (#2066)

This commit is contained in:
Daniel Salazar
2025-11-29 13:18:37 -08:00
committed by GitHub
parent dccfa8085e
commit e8f00e1121
3 changed files with 13 additions and 2 deletions
+9
View File
@@ -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'],
@@ -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<string, unknown> = {};
rows.forEach((row: { kkey: string, value: string }) => {
+3 -1
View File
@@ -8,7 +8,9 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"sourceMap": true
"sourceMap": true,
"removeComments": true,
"noEmitOnError": true,
},
"exclude": [
"**/*.test.ts",