global update and global fix

This commit is contained in:
lendry
2026-06-25 23:48:57 +03:00
parent 3880c68d59
commit b0ea87e898
121 changed files with 13759 additions and 663 deletions

View File

@@ -139,5 +139,22 @@ export class ProfileController {
await this.assertSelfAccess(authorization, userId);
return this.core.profile.GetAccountDeletionStatus({ userId });
}
@Get('e2e-public-key')
@ApiOperation({ summary: 'Получить публичный E2E-ключ пользователя' })
async getE2EPublicKey(@Param('userId') userId: string) {
return this.core.profile.GetE2EPublicKey({ userId });
}
@Patch('e2e-public-key')
@ApiOperation({ summary: 'Сохранить свой публичный E2E-ключ' })
async setE2EPublicKey(
@Headers('authorization') authorization: string | undefined,
@Param('userId') userId: string,
@Body() dto: { publicKey: string }
) {
await this.assertSelfAccess(authorization, userId);
return this.core.profile.SetE2EPublicKey({ userId, publicKey: dto.publicKey });
}
}