From ff63535b00c27448a9ba57956abcb4f2e2a2d941 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Tue, 28 Jan 2025 16:05:40 -0500 Subject: [PATCH] fix: watch all events to load keys --- api/src/unraid-api/auth/api-key.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/unraid-api/auth/api-key.service.ts b/api/src/unraid-api/auth/api-key.service.ts index 215015bdf..872f69756 100644 --- a/api/src/unraid-api/auth/api-key.service.ts +++ b/api/src/unraid-api/auth/api-key.service.ts @@ -47,7 +47,7 @@ export class ApiKeyService implements OnModuleInit { } private setupWatch() { - watch(this.basePath, { ignoreInitial: false }).on('change', async (path) => { + watch(this.basePath, { ignoreInitial: false }).on('all', async (path) => { this.logger.debug(`API key changed: ${path}`); this.memoryApiKeys = []; this.memoryApiKeys = await this.loadAllFromDisk();