fix and update

This commit is contained in:
lendry
2026-06-25 16:01:41 +03:00
parent ce58e6f4c1
commit 3880c68d59
40 changed files with 1715 additions and 215 deletions

View File

@@ -1,6 +1,7 @@
import { BadRequestException, ForbiddenException, Injectable, NotFoundException } from '@nestjs/common';
import { PrismaService } from '../infra/prisma.service';
import { resolveVerificationIcon } from './verification.constants';
import { SettingsService } from './settings.service';
@@ -496,7 +497,9 @@ export class FamilyService {
email: true,
phone: true,
username: true,
avatarStorageKey: true
avatarStorageKey: true,
isVerified: true,
verificationIcon: true
}
});
@@ -507,7 +510,9 @@ export class FamilyService {
email: user.email,
phone: user.phone,
username: user.username,
hasAvatar: Boolean(user.avatarStorageKey)
hasAvatar: Boolean(user.avatarStorageKey),
isVerified: user.isVerified,
verificationIcon: user.isVerified ? resolveVerificationIcon(user.verificationIcon) : undefined
}))
};
}
@@ -800,7 +805,7 @@ export class FamilyService {
createdAt: Date;
user?: { displayName: string; avatarStorageKey: string | null };
user?: { displayName: string; avatarStorageKey: string | null; isVerified: boolean; verificationIcon: string | null };
}>;
@@ -840,7 +845,7 @@ export class FamilyService {
createdAt: Date;
user?: { displayName: string; avatarStorageKey: string | null };
user?: { displayName: string; avatarStorageKey: string | null; isVerified: boolean; verificationIcon: string | null };
}) {
@@ -858,6 +863,10 @@ export class FamilyService {
hasAvatar: Boolean(member.user?.avatarStorageKey),
isVerified: member.user?.isVerified ?? false,
verificationIcon: member.user?.isVerified ? resolveVerificationIcon(member.user?.verificationIcon) : undefined,
createdAt: member.createdAt.toISOString()
};