Skip to content

Commit 71eebcd

Browse files
committed
fix: watch all events to load keys
1 parent 01fe150 commit 71eebcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/unraid-api/auth/api-key.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ApiKeyService implements OnModuleInit {
4747
}
4848

4949
private setupWatch() {
50-
watch(this.basePath, { ignoreInitial: false }).on('change', async (path) => {
50+
watch(this.basePath, { ignoreInitial: false }).on('all', async (path) => {
5151
this.logger.debug(`API key changed: ${path}`);
5252
this.memoryApiKeys = [];
5353
this.memoryApiKeys = await this.loadAllFromDisk();

0 commit comments

Comments
 (0)