260326:1347 Fixing Refactor ADR-019 Naming convention uuid #01
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user