try a delay
This commit is contained in:
parent
8434b5a255
commit
eaefbaa07c
|
@ -45,6 +45,7 @@ export async function restoreMastodonData () {
|
||||||
console.log('Restoring mastodon data...')
|
console.log('Restoring mastodon data...')
|
||||||
let internalIdsToIds = {}
|
let internalIdsToIds = {}
|
||||||
for (let action of actions) {
|
for (let action of actions) {
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 1000)) // delay so that notifications have proper order
|
||||||
console.log(JSON.stringify(action))
|
console.log(JSON.stringify(action))
|
||||||
let accessToken = users[action.user].accessToken
|
let accessToken = users[action.user].accessToken
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue