Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix(cache): cache always being reset
Browse files Browse the repository at this point in the history
  • Loading branch information
moranje committed Feb 16, 2020
1 parent 32044b0 commit d83408e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/todoist/local-rest-adapter/conf-cache/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function deserialize<GenericStore>(json: string): GenericStore {
const stored = JSON.parse(json);

// Only initialize store the first time running a run
if (Object.is(timestampStore.store, {})) {
if (Object.keys(timestampStore.store).length === 0) {
timestampStore.store = stored._cache;
}
delete stored._cache;
Expand Down

0 comments on commit d83408e

Please sign in to comment.