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