수정 4번째...

This commit is contained in:
최준흠 2022-08-23 16:22:44 +09:00
parent bef35b2e57
commit f7e941d6aa

View File

@ -59,17 +59,12 @@ export class TodoController {
}, },
orderBy: { id: 'desc' } orderBy: { id: 'desc' }
} }
const rows = await this.todoService.fetchAll(fetchSQL)
console.log(fetchSQL) console.log(fetchSQL)
const data = { const data = {
page: page,
per_page: per_page,
searchString: query.searchString,
total: total, total: total,
rows: rows rows: await this.todoService.fetchAll(fetchSQL)
} }
//console.log(data)
return data return data
} }