fix: pass truncate

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-04-25 22:44:16 +08:00
parent 5ea551f255
commit 924e7e4b5b

View File

@@ -45,7 +45,7 @@ export class PostController<ResponseWrapper> implements IController {
* @returns
*/
getList(page = 1, perPage = 10, options: PostListOptions = {}) {
const { select, sortBy, sortOrder, year } = options
const { select, sortBy, sortOrder, year, truncate } = options
return this.proxy.get<PaginateResult<PostModel>>({
params: {
page,
@@ -54,6 +54,7 @@ export class PostController<ResponseWrapper> implements IController {
sortBy,
sortOrder,
year,
truncate,
},
})
}