database.optimize().catch(console.error)

This commit is contained in:
pa
2025-12-20 04:31:14 +09:00
committed by Natsumi
parent d23f33d053
commit 4e4f67b9b5

View File

@@ -138,7 +138,7 @@ export const useUpdateLoopStore = defineStore('UpdateLoop', () => {
}
if (--state.nextDatabaseOptimize <= 0) {
state.nextDatabaseOptimize = 86400; // 1 day
database.optimize();
database.optimize().catch(console.error);
}
}
} catch (err) {