Skip to content

Commit

Permalink
aggregator lifecycle event fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-codez committed Apr 11, 2024
1 parent 15065e1 commit 4f301ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@digital-alchemy/grocy",
"repository": "https://github.com/Digital-Alchemy-TS/grocy",
"homepage": "https://docs.digital-alchemy.app/Grocy",
"version": "0.3.3",
"version": "0.3.4",
"scripts": {
"build": "tsc",
"lint": "eslint src",
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/aggregator.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function Aggregator({
await aggregator.buildTaskCache();
GROCY_REBUILD_CACHE.setToCurrentTime();
}
lifecycle.onPostConfig(async () => await refresh());
lifecycle.onBootstrap(async () => await refresh());
scheduler.cron({
exec: async () => await refresh(),
schedule: CronExpression.EVERY_2_HOURS,
Expand Down

0 comments on commit 4f301ef

Please sign in to comment.