- add logger for coa name
This commit is contained in:
parent
4bf9d254e0
commit
da1f593a53
|
@ -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(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user