more fix and update
This commit is contained in:
@@ -121,6 +121,13 @@ export class NotificationsService {
|
||||
return { count: result.count };
|
||||
}
|
||||
|
||||
async dismissOtpCodeNotifications(userId: string) {
|
||||
const result = await this.prisma.notification.deleteMany({
|
||||
where: { userId, type: 'otp_code' }
|
||||
});
|
||||
return { count: result.count };
|
||||
}
|
||||
|
||||
async dismissFamilyInvite(userId: string, inviteId: string) {
|
||||
const items = await this.prisma.notification.findMany({
|
||||
where: { userId, type: 'family_invite' }
|
||||
|
||||
Reference in New Issue
Block a user