Skip to content

Commit

Permalink
fix: timestamp can’t be null (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom authored Nov 19, 2024
1 parent 2a88cd7 commit fe38de3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/transactions/entities/transaction.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class Transaction {
id: string;
@ApiPropertyOptional({ type: String, nullable: true })
txHash: `0x${string}` | null;
@ApiPropertyOptional({ type: Number, nullable: true })
timestamp: number | null;
@ApiProperty()
timestamp: number;
@ApiProperty({ enum: TransactionStatus })
txStatus: string;
@ApiProperty({
Expand Down Expand Up @@ -72,7 +72,7 @@ export class Transaction {

constructor(
id: string,
timestamp: number | null,
timestamp: number,
txStatus: string,
txInfo: TransactionInfo,
executionInfo: ExecutionInfo | null = null,
Expand Down

0 comments on commit fe38de3

Please sign in to comment.