-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(invitation): add notif when group receive invitation
- Loading branch information
1 parent
17c72e1
commit 15452fb
Showing
3 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
api/entity/notifications/invitation/GroupReceiveInvitationNotification.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Groups, Notification } from '../../index'; | ||
import { ChildEntity, ManyToOne } from 'typeorm'; | ||
|
||
/** | ||
* @description This notification is used when a group or a musician | ||
* has receive an invitation | ||
*/ | ||
|
||
@ChildEntity() | ||
export class GroupReceiveInvitationNotification extends Notification { | ||
@ManyToOne(() => Groups, { | ||
onDelete: 'CASCADE', | ||
nullable: true, | ||
}) | ||
group: Groups; | ||
} |