fix: rkey

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

No files matched your search

+1 -1
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);