@@ -216,7 +216,7 @@ export const useBotStore = defineStore('wrapper', {
216
216
this . globalAutoRefresh = value ;
217
217
} ,
218
218
async allRefreshFrequent ( forceUpdate = false ) {
219
- const updates : Promise < any > [ ] = [ ] ;
219
+ const updates : Promise < unknown > [ ] = [ ] ;
220
220
this . allBotStores . forEach ( async ( e ) => {
221
221
if ( e . refreshNow && ( this . globalAutoRefresh || forceUpdate ) ) {
222
222
updates . push ( e . refreshFrequent ( ) ) ;
@@ -242,14 +242,14 @@ export const useBotStore = defineStore('wrapper', {
242
242
await this . pingAll ( ) ;
243
243
244
244
const botStoreUpdates : Promise < any > [ ] = [ ] ;
245
- this . allBotStores . forEach ( ( e ) => {
246
- if ( e . isBotOnline && ! e . botStatusAvailable ) {
247
- botStoreUpdates . push ( e . getState ( ) ) ;
245
+ this . allBotStores . forEach ( ( bot ) => {
246
+ if ( bot . isBotOnline && ! bot . botStatusAvailable ) {
247
+ botStoreUpdates . push ( bot . getState ( ) ) ;
248
248
}
249
249
} ) ;
250
250
await Promise . all ( botStoreUpdates ) ;
251
251
252
- const updates : Promise < any > [ ] = [ ] ;
252
+ const updates : Promise < void > [ ] = [ ] ;
253
253
updates . push ( this . allRefreshFrequent ( false ) ) ;
254
254
updates . push ( this . allRefreshSlow ( true ) ) ;
255
255
// updates.push(this.getDaily());
@@ -309,11 +309,11 @@ export const useBotStore = defineStore('wrapper', {
309
309
} ) ;
310
310
} ,
311
311
async allGetDaily ( payload : DailyPayload ) {
312
- const updates : Promise < any > [ ] = [ ] ;
312
+ const updates : Promise < DailyReturnValue > [ ] = [ ] ;
313
313
314
- this . allBotStores . forEach ( ( e ) => {
315
- if ( e . isBotOnline ) {
316
- updates . push ( e . getDaily ( payload ) ) ;
314
+ this . allBotStores . forEach ( ( bot ) => {
315
+ if ( bot . isBotOnline ) {
316
+ updates . push ( bot . getDaily ( payload ) ) ;
317
317
}
318
318
} ) ;
319
319
await Promise . all ( updates ) ;
0 commit comments