From eaefbaa07c830d84faacd5ec8985c5fd0b3dc25f Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 7 Jun 2018 20:52:12 -0700 Subject: [PATCH] try a delay --- bin/restore-mastodon-data.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/restore-mastodon-data.js b/bin/restore-mastodon-data.js index 222119b6..42028ac4 100644 --- a/bin/restore-mastodon-data.js +++ b/bin/restore-mastodon-data.js @@ -45,6 +45,7 @@ export async function restoreMastodonData () { console.log('Restoring mastodon data...') let internalIdsToIds = {} for (let action of actions) { + await new Promise(resolve => setTimeout(resolve, 1000)) // delay so that notifications have proper order console.log(JSON.stringify(action)) let accessToken = users[action.user].accessToken