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

Commit

Permalink
fix: transactionTime in the case where lastTransaction exists
Browse files Browse the repository at this point in the history
  • Loading branch information
gjgd committed Nov 14, 2019
1 parent 97c6345 commit dd59cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/element-lib/src/sidetree/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = async (sidetree) => {
if (cachedRecord.lastResolvedTransactionTime) {
transactionTime = cachedRecord.lastResolvedTransactionTime;
} else if (cachedRecord.lastTransaction) {
transactionTime = 0;
({ transactionTime } = cachedRecord.lastTransaction);
} else {
transactionTime = 0;
}
Expand Down

0 comments on commit dd59cc2

Please sign in to comment.