Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
fix: bug where operations could be overriden
Browse files Browse the repository at this point in the history
  • Loading branch information
gjgd committed Dec 5, 2019
1 parent 2f8433f commit 0ca42a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/element-lib/src/sidetree-v2/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const syncTransaction = async (sidetree, transaction) => {
operation,
};
});
const writeOperationToCache = op => sidetree.db.write(`operation:${op.operation.operationHash}`, op);
const writeOperationToCache = op => sidetree.db.write(`operation:${op.operation.operationHash}${Date.now()}`, op);
return executeSequentially(
writeOperationToCache,
operationsByDidUniqueSuffixes,
Expand Down

0 comments on commit 0ca42a9

Please sign in to comment.