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 }