260326:1347 Fixing Refactor ADR-019 Naming convention uuid #01
CI / CD Pipeline / build (push) Failing after 17m29s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
admin
2026-03-26 13:47:07 +07:00
parent 978d66e49e
commit 1aff83214f
34 changed files with 217 additions and 222 deletions
+4 -4
View File
@@ -86,7 +86,7 @@ export class UserService {
.leftJoinAndSelect('assignments.role', 'role')
.select([
'user.user_id',
'user.uuid',
'user.publicId',
'user.username',
'user.email',
'user.firstName',
@@ -156,9 +156,9 @@ export class UserService {
return user;
}
async findOneByUuid(uuid: string): Promise<User> {
async findOneByUuid(publicId: string): Promise<User> {
const user = await this.usersRepository.findOne({
where: { uuid },
where: { publicId },
relations: [
'preference',
'assignments',
@@ -168,7 +168,7 @@ export class UserService {
});
if (!user) {
throw new NotFoundException(`User with UUID ${uuid} not found`);
throw new NotFoundException(`User with publicId ${publicId} not found`);
}
return user;