Skip to content

Commit ab4b98a

Browse files
committed
oops
1 parent a7a3e8c commit ab4b98a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tgbot.deno.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ async function postGeohash() {
119119
upcoming.setDate(upcoming.getDate() + 1);
120120
}
121121

122+
await new Promise((resolve) =>
123+
setTimeout(resolve, upcoming.getTime() - now.getTime())
124+
);
122125

123126
for (const origin of origins) {
124127
const geoHash = await geohash(new Date(), origin);
@@ -157,9 +160,6 @@ async function postGeohash() {
157160
});
158161
}
159162

160-
await new Promise((resolve) =>
161-
setTimeout(resolve, upcoming.getTime() - now.getTime())
162-
);
163163
await domeny();
164164

165165
setTimeout(postGeohash, 1000 * 60 * 60 * 2);

0 commit comments

Comments
 (0)