From fdefee8b0336cf8f0a321681d0bf2011ea34c088 Mon Sep 17 00:00:00 2001 From: jorenn92 Date: Fri, 26 Jan 2024 12:46:26 +0100 Subject: [PATCH] refactor: Wait for potential cache reset --- server/src/modules/rules/tasks/rule-executor.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/modules/rules/tasks/rule-executor.service.ts b/server/src/modules/rules/tasks/rule-executor.service.ts index 09e253ab..371ff281 100644 --- a/server/src/modules/rules/tasks/rule-executor.service.ts +++ b/server/src/modules/rules/tasks/rule-executor.service.ts @@ -92,7 +92,7 @@ export class RuleExecutorService implements OnApplicationBootstrap { this.startTime = new Date(); // reset Plex cache if group uses a rule that requires it (collection rules for example) - this.rulesService.resetPlexCacheIfgroupUsesRuleThatRequiresIt( + await this.rulesService.resetPlexCacheIfgroupUsesRuleThatRequiresIt( rulegroup, );