Refactor globalApi.ts to add sleep function for saving database

This commit is contained in:
kwaroran
2024-10-26 20:55:02 +09:00
parent ffa6308ca3
commit 92f1ed0528

View File

@@ -332,6 +332,7 @@ export async function saveDb(){
}
}
let savetrys = 0
await sleep(1000)
while(true){
try {
if(changed){