aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-06-14 06:36:55 +0300
committerGravatar Vitaly Takmazov2023-06-14 06:37:13 +0300
commit1eabc0cc76a39b9239e156f83be2e80f64f4f8a8 (patch)
tree6b9158f7b80ca11e6785714315c1054fa1104225
parent7dbd846c0df24d2ed45103d674d5ef361e6f23b3 (diff)
backup: mute `no-callback-in-promise` warning
-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)