This commit is contained in:
Fadli 2023-01-04 02:38:32 +07:00
commit 4c13b45782

View File

@ -122,8 +122,10 @@ export class CoaService {
async findByName(name: string) {
try {
console.log('coaname', name);
return await this.coaRepository.findOneOrFail({ name: name });
} catch (e) {
console.log('coaerror', e);
if (e instanceof EntityNotFoundError) {
throw new HttpException(
{