more fix and update

This commit is contained in:
lendry
2026-06-24 20:15:19 +03:00
parent dcab6557d3
commit 9727cf3f35
53 changed files with 3479 additions and 494 deletions

View File

@@ -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' }