try a delay

This commit is contained in:
Nolan Lawson 2018-06-07 20:52:12 -07:00
parent 8434b5a255
commit eaefbaa07c
1 changed files with 1 additions and 0 deletions

View File

@ -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