From 471dfb548280821270831e4cbefb826611ba651b Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 21 Apr 2024 14:20:52 +0300 Subject: [PATCH] Add new methods 4 --- src/modules/bar/bar.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/bar/bar.controller.ts b/src/modules/bar/bar.controller.ts index 4dd9f84..52ddd07 100644 --- a/src/modules/bar/bar.controller.ts +++ b/src/modules/bar/bar.controller.ts @@ -40,9 +40,10 @@ export class BarController { data: await this.barService.getReport(new Date(date)), }; } catch (error) { + console.log('reports.error', error); return { status: 'ERROR', - error, + error: error.message, }; } }