Skip to content

Commit

Permalink
Merge pull request #45 from elmarti/develop
Browse files Browse the repository at this point in the history
🐛 update cache onUpdate
  • Loading branch information
elmarti authored Oct 16, 2021
2 parents 157412b + 20437ec commit b16bec5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/persistence/fs/fs-persistence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,11 @@ export default class FSPersistence implements IPersistenceAdapter {
return this.cache;
}
async update(updated:any): Promise<void> {


await this.queue.add(async () => {
this.logger.log(LogLevel.Debug, `Writing file`);
await this.fs.writeData(this.outputPath, this.collectionName, updated);
})

this.cache = updated;
})
}

/**
Expand Down

0 comments on commit b16bec5

Please sign in to comment.