Skip to content

Commit

Permalink
fix: add missing default constraint for isInternal field (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Romsters committed Oct 10, 2023
1 parent 5192e67 commit b5abc72
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/transfer/addressTransfer.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ export class AddressTransfer extends BaseEntity {
@Column({ type: "jsonb", nullable: true })
public readonly fields?: Record<string, string>;

@Column({ type: "boolean" })
@Column({ type: "boolean", default: false })
public readonly isInternal: boolean;
}
2 changes: 1 addition & 1 deletion packages/api/src/transfer/transfer.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Transfer extends BaseEntity {
@Column({ type: "jsonb", nullable: true })
public readonly fields?: Record<string, string>;

@Column({ type: "boolean" })
@Column({ type: "boolean", default: false })
public readonly isInternal: boolean;

toJSON() {
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/src/entities/addressTransfer.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ export class AddressTransfer extends BaseEntity {
@Column({ type: "int" })
public readonly logIndex: number;

@Column({ type: "boolean" })
@Column({ type: "boolean", default: false })
public readonly isInternal: boolean;
}
2 changes: 1 addition & 1 deletion packages/worker/src/entities/transfer.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ export class Transfer extends CountableEntity {
@Column({ type: "int" })
public readonly logIndex: number;

@Column({ type: "boolean" })
@Column({ type: "boolean", default: false })
public readonly isInternal: boolean;
}

0 comments on commit b5abc72

Please sign in to comment.