From 20437ec610f73b9bae1a74c10fc2ec1a2f8b7e57 Mon Sep 17 00:00:00 2001 From: Jack Martin Date: Sat, 16 Oct 2021 18:35:13 +0100 Subject: [PATCH] :bug: update cache onUpdate --- src/modules/persistence/fs/fs-persistence.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/persistence/fs/fs-persistence.ts b/src/modules/persistence/fs/fs-persistence.ts index 45c5872..2a7acf1 100644 --- a/src/modules/persistence/fs/fs-persistence.ts +++ b/src/modules/persistence/fs/fs-persistence.ts @@ -92,13 +92,11 @@ export default class FSPersistence implements IPersistenceAdapter { return this.cache; } async update(updated:any): Promise { - - await this.queue.add(async () => { this.logger.log(LogLevel.Debug, `Writing file`); await this.fs.writeData(this.outputPath, this.collectionName, updated); - }) - + this.cache = updated; + }) } /**