aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts')
-rw-r--r--contrib/scripts/backup.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/scripts/backup.js b/contrib/scripts/backup.js
index 8c87b2dd..0b1bf89c 100644
--- a/contrib/scripts/backup.js
+++ b/contrib/scripts/backup.js
@@ -20,7 +20,8 @@ function getBlogData(blogUrl, callback) {
blog.searchParams.set('before_mid', msgs.slice(-1).pop().mid)
setTimeout(getBlogData, 1000, blog, callback)
} else {
- callback()
+ // eslint-disable-next-line promise/no-callback-in-promise
+ setTimeout(() => callback(), 0)
}
})
.catch(console.error)