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
@@ -89,10 +89,12 @@ export class OrganizationService {
return org;
}
async findOneByUuid(uuid: string) {
const org = await this.orgRepo.findOne({ where: { uuid } });
async findOneByUuid(publicId: string) {
const org = await this.orgRepo.findOne({ where: { publicId } });
if (!org)
throw new NotFoundException(`Organization UUID ${uuid} not found`);
throw new NotFoundException(
`Organization publicId ${publicId} not found`
);
return org;
}