Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production

This commit is contained in:
Fadli 2023-01-04 02:39:16 +07:00
commit 0d1c599a42

View File

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