Skip to content

Commit ee52727

Browse files
🐛 Add delay to legacy method in google-fit.ts
1 parent db6d36e commit ee52727

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/google-fit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export default class GoogleFit implements Integration {
8888
const startDate = dayjs(start);
8989
for await (const count of [...Array(dayjs().diff(startDate, "day")).keys()]) {
9090
const date = dayjs(startDate).add(count, "day");
91+
await new Promise((resolve) => setTimeout(resolve, 1000));
9192
await updateGoogleFitDailyData(date.toDate());
9293
}
9394
console.log("Done!");

0 commit comments

Comments
 (0)