From f7e941d6aa42420c2b9915f00cd43f6178925e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 23 Aug 2022 16:22:44 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95=204=EB=B2=88=EC=A7=B8...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/todo/todo.controller.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/todo/todo.controller.ts b/src/todo/todo.controller.ts index fcf875b..b1825b5 100644 --- a/src/todo/todo.controller.ts +++ b/src/todo/todo.controller.ts @@ -59,17 +59,12 @@ export class TodoController { }, orderBy: { id: 'desc' } } - const rows = await this.todoService.fetchAll(fetchSQL) console.log(fetchSQL) const data = { - page: page, - per_page: per_page, - searchString: query.searchString, total: total, - rows: rows + rows: await this.todoService.fetchAll(fetchSQL) } - //console.log(data) return data }