Skip to content

Commit c4e6fa1

Browse files
tastybentoclaude
andcommitted
Load download counts immediately on startup
Called generateDownloads() at the end of reload() so download counts are read from SQLite as soon as the addons array is built, rather than waiting up to 6 minutes for the first cron tick. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e8d9e61 commit c4e6fa1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/api/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export default class ApiManager {
218218
async reload(): Promise<void> {
219219
this.config = this.configStore.getEffectiveConfig();
220220
await this.rebuildAddons();
221+
await this.generateDownloads();
221222
}
222223

223224
private createWeblinkSync(): WeblinkSync {

0 commit comments

Comments
 (0)