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

@@ -4,6 +4,7 @@ import { JwtService } from '@nestjs/jwt';
import { GetObjectCommand } from '@aws-sdk/client-s3';
import { PrismaService } from '../infra/prisma.service';
import { AccessService } from './access.service';
import { ChatService } from './chat.service';
import { MinioService } from '../infra/minio.service';
const AVATAR_ACCESS_TTL_SECONDS = 900;
@@ -32,7 +33,8 @@ export class MediaService {
private readonly minio: MinioService,
private readonly jwt: JwtService,
private readonly config: ConfigService,
private readonly access: AccessService
private readonly access: AccessService,
private readonly chat: ChatService
) {}
async createAvatarUploadUrl(userId: string, contentType: string) {
@@ -259,6 +261,7 @@ export class MediaService {
where: { id: roomId },
data: { avatarStorageKey: storageKey, hasAvatar: true }
});
await this.chat.publishRoomAvatarChangedMessage(roomId, requesterId);
return { roomId, hasAvatar: true };
}