Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production
This commit is contained in:
commit
0d1c599a42
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user