Skip to content

Commit

Permalink
fix: 🐛 convert tradeDate and valueDate values to Date for middlewar…
Browse files Browse the repository at this point in the history
…e instructions
  • Loading branch information
F-OBrien committed Dec 4, 2024
1 parent aec1b87 commit 163cd43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/entities/Instruction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ export class Instruction extends Entity<UniqueIdentifiers, string> {
return {
status: middlewareInstructionStatusToInstructionStatus(status),
createdAt: new Date(createdBlock!.datetime),
tradeDate,
valueDate,
tradeDate: new Date(tradeDate),
valueDate: new Date(valueDate),
venue: venueId ? new Venue({ id: new BigNumber(venueId) }, context) : null,
memo: memo ?? null,
...endCondition,
Expand Down

0 comments on commit 163cd43

Please sign in to comment.