From 5ec02e53d3b27860b01d8f4352670d3c7f04f5bf Mon Sep 17 00:00:00 2001 From: ltlapy Date: Tue, 9 May 2023 23:01:27 +0900 Subject: [PATCH] Fix(backend): Update notification type declarations ... related with 30d699268450af375dabc2226ec4f3196a53f7f7 --- packages/backend/src/models/entities/Notification.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/backend/src/models/entities/Notification.ts b/packages/backend/src/models/entities/Notification.ts index 4ff2102bd2..7dcf8f57e4 100644 --- a/packages/backend/src/models/entities/Notification.ts +++ b/packages/backend/src/models/entities/Notification.ts @@ -39,17 +39,9 @@ export type Notification = { reaction: string | null; - @Column({ - ...id(), - nullable: true, - }) - public userGroupInvitationId: UserGroupInvitation['id'] | null; + userGroupInvitationId: UserGroupInvitation['id'] | null; - @ManyToOne(type => UserGroupInvitation, { - onDelete: 'CASCADE', - }) - @JoinColumn() - public userGroupInvitation: UserGroupInvitation | null; + userGroupInvitation: UserGroupInvitation | null; choice: number | null;