File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments