fix and update

This commit is contained in:
lendry
2026-07-01 23:27:48 +03:00
parent 2b88e028c6
commit bcdfbc3861
36 changed files with 1504 additions and 320 deletions

View File

@@ -40,8 +40,12 @@ export class NotificationsController {
@Get('unread-count')
@ApiOperation({ summary: 'Количество непрочитанных уведомлений' })
async unreadCount(@Headers('authorization') authorization: string | undefined) {
const userId = await getAuthorizedUserId(this.jwt, this.core, authorization);
async unreadCount(
@Headers('authorization') authorization: string | undefined,
@Headers('x-id-passive-activity') passiveActivity: string | undefined
) {
const touchActivity = passiveActivity !== '1';
const userId = await getAuthorizedUserId(this.jwt, this.core, authorization, touchActivity);
return firstValueFrom(this.core.notifications.GetUnreadCount({ userId }));
}