fix(web): user details (#18253)

fix(server, web): user details
This commit is contained in:
Daimolean 2025-05-13 19:55:58 +08:00 committed by GitHub
parent c0ad12f279
commit dccbe0b3ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ export class UserAdminService extends BaseService {
}
async getStatistics(auth: AuthDto, id: string, dto: AssetStatsDto): Promise<AssetStatsResponseDto> {
const stats = await this.assetRepository.getStatistics(auth.user.id, dto);
const stats = await this.assetRepository.getStatistics(id, dto);
return mapStats(stats);
}

View File

@ -8,7 +8,7 @@ import type { PageLoad } from './$types';
export const load = (async ({ params }) => {
await authenticate({ admin: true });
await requestServerInfo();
const [user] = await searchUsersAdmin({ id: params.id }).catch(() => []);
const [user] = await searchUsersAdmin({ id: params.id, withDeleted: true }).catch(() => []);
if (!user) {
redirect(302, AppRoute.ADMIN_USERS);
}