Skip to content

Commit

Permalink
fix: timestamp can’t be null
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Nov 15, 2024
1 parent 3ed8837 commit beace97
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;
@ApiPropertyOptional({ type: Number })
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 beace97

Please sign in to comment.