Skip to content

Commit

Permalink
fix: invalid promise resolve function
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed Feb 3, 2025
1 parent 92b4f1f commit 19bd7c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/datalayer/syncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const unsubscribeFromDataLayerStoreWithRetry = async (
`failed to unsubscribe from store ${storeId} after ${maxRetries} attempts`,
);
}
await new Promise((resolve) => setTimeout(() => resolve, retryWaitMs));
await new Promise((resolve) =>
setTimeout(() => resolve(), retryWaitMs),
);
}
}
}
Expand Down Expand Up @@ -99,7 +101,7 @@ const getSubscribedStoreData = async (
logger.warn(
`datalayer has not fully synced subscribed store ${storeId}. waiting to return data until store is synced`,
);
await new Promise((resolve) => setTimeout(() => resolve, 10000));
await new Promise((resolve) => setTimeout(() => resolve(), 10000));
}
}
}
Expand Down

0 comments on commit 19bd7c3

Please sign in to comment.