Skip to content

fix(core-api): return the database timestamp instead of deserialised#1957

Merged
spkjp merged 5 commits intodevelopfrom
fix/api-timestamp
Jan 9, 2019
Merged

fix(core-api): return the database timestamp instead of deserialised#1957
spkjp merged 5 commits intodevelopfrom
fix/api-timestamp

Conversation

@faustbrian
Copy link
Copy Markdown
Contributor

@faustbrian faustbrian commented Jan 9, 2019

Proposed changes

The timestamp of the deserialised transaction was used instead of the timestamp from the database by which transactions are sorted.

The problem with that is that the timestamp gets overwritten when a transaction gets forged so the timestamp in the database and serialised transaction differ.

Resolves #1951

Types of changes

  • Bugfix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING documentation
  • Lint and unit tests pass locally with my changes

@faustbrian faustbrian changed the title Fix/api timestamp fix(core-api): return the database timestamp instead of deserialised Jan 9, 2019
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 9, 2019

Codecov Report

Merging #1957 into develop will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1957   +/-   ##
========================================
  Coverage    38.61%   38.61%           
========================================
  Files          354      354           
  Lines         7762     7762           
  Branches      1137     1139    +2     
========================================
  Hits          2997     2997           
  Misses        4751     4751           
  Partials        14       14
Impacted Files Coverage Δ
...ore-api/src/versions/1/transactions/transformer.ts 0% <0%> (ø) ⬆️
packages/core-api/src/repositories/transactions.ts 0% <0%> (ø) ⬆️
...ore-api/src/versions/2/transactions/transformer.ts 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6e98f0...1441a56. Read the comment docs.

Copy link
Copy Markdown
Contributor

@spkjp spkjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable.

@spkjp spkjp merged commit dfa2ac0 into develop Jan 9, 2019
@spkjp spkjp deleted the fix/api-timestamp branch January 9, 2019 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants