Skip to content

Commit 0d9e000

Browse files
committed
oops
1 parent 0d9e000 commit 0d9e000

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tgbot.deno.ts

Lines changed: 4 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);
@@ -592,6 +592,7 @@ Be grateful for your abilities and your incredible success and your considerable
592592
`Hej chápu že to je opruz, tady máš tu původní zprávu:\n\n${text}`,
593593
});
594594
}
595+
break;
595596
}
596597
}
597598
}

0 commit comments

Comments
 (0)