From 4f301ef1c582fd76b3e16bbdb66d8be466bf2987 Mon Sep 17 00:00:00 2001 From: Zoe Codez Date: Thu, 11 Apr 2024 10:32:02 -0500 Subject: [PATCH] aggregator lifecycle event fix --- package.json | 2 +- src/extensions/aggregator.extension.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 45d5e09..a14bada 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/extensions/aggregator.extension.ts b/src/extensions/aggregator.extension.ts index 1234eaf..15a08c7 100644 --- a/src/extensions/aggregator.extension.ts +++ b/src/extensions/aggregator.extension.ts @@ -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,