수정 4번째...
This commit is contained in:
parent
bef35b2e57
commit
f7e941d6aa
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user