mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 08:30:39 +00:00
fix: typo in dbkvStore (#2066)
This commit is contained in:
@@ -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
@@ -8,7 +8,9 @@
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"skipLibCheck": true,
|
||||
"sourceMap": true
|
||||
"sourceMap": true,
|
||||
"removeComments": true,
|
||||
"noEmitOnError": true,
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.test.ts",
|
||||
|
||||
Reference in New Issue
Block a user