From 1eabc0cc76a39b9239e156f83be2e80f64f4f8a8 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 14 Jun 2023 06:36:55 +0300 Subject: backup: mute `no-callback-in-promise` warning --- contrib/scripts/backup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') 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) -- cgit v1.2.3