family update

This commit is contained in:
lendry
2026-06-24 23:17:24 +03:00
parent 9727cf3f35
commit f2366a69a0
18 changed files with 1374 additions and 103 deletions

View File

@@ -144,5 +144,12 @@ export class FamilyController {
const userId = await this.auth(authorization);
return firstValueFrom(this.core.family.RespondFamilyInvite({ userId, inviteId, accept: dto.accept }));
}
@Get('groups/:groupId/presence')
@ApiOperation({ summary: 'Онлайн-статус участников семьи' })
async getPresence(@Headers('authorization') authorization: string | undefined, @Param('groupId') groupId: string) {
const requesterId = await this.auth(authorization);
return firstValueFrom(this.core.family.GetFamilyPresence({ requesterId, groupId }));
}
}