Skip to content

Commit

Permalink
fix: timestamp cache fix
Browse files Browse the repository at this point in the history
  • Loading branch information
puppybits committed Dec 2, 2021
1 parent 895525a commit 9e337ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/cacheReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ const increment = (key, val, cached) =>
key === '::increment' && typeof val === 'number' && (cached() || 0) + val;

const serverTimestamp = (key) =>
key === '::serverTimestamp' && getFirestore().FieldValue.serverTimestamp();
key === '::serverTimestamp' && getFirestore().Timestamp.now();

/**
* Process Mutation to a vanilla JSON
Expand Down

0 comments on commit 9e337ca

Please sign in to comment.