fix: rkey

This commit is contained in:
linyuchen
2024-04-23 18:38:13 +08:00
parent a5e34645c5
commit a7fe74bc0c
6 changed files with 83 additions and 21 deletions

View File

@@ -260,7 +260,7 @@ class DBUtil extends DBUtilBase {
async updateFileCache(file: DBFile) {
const stmt = this.db!.prepare('UPDATE files SET path = ?, url = ? WHERE uuid = ?');
return new Promise((resolve, reject) => {
stmt.run(file.path, file.url, function (err: any) {
stmt.run(file.path, file.url,file.uuid, function (err: any) {
if (err) {
log('db could not update file cache', err);
reject(err);