mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +08:00
fix: database issue with KBKV update
This commit is contained in:
parent
7f036223f6
commit
7ba1b7656b
@ -39,7 +39,8 @@ class DBKVService extends BaseService {
|
||||
`SELECT kkey, value FROM kv WHERE user_id=? AND app=? AND kkey_hash IN (?)`,
|
||||
[ user.id, app.uid, key_hashes ]
|
||||
) : await this.db.read(
|
||||
`SELECT kkey, value FROM kv WHERE user_id=? AND (app IS NULL OR app = 'global') AND kkey_hash IN (?)`,
|
||||
`SELECT kkey, value FROM kv WHERE user_id=? AND (app IS NULL OR app = 'global') ` +
|
||||
`AND kkey_hash IN (${key_hashes.map(() => '?').join(',')})`,
|
||||
[ user.id, key_hashes ]
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user