mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: nlp-sample pagination
This commit is contained in:
parent
13cf35b828
commit
bfd8f4170f
@ -181,7 +181,11 @@ export class NlpSampleController extends BaseController<
|
|||||||
*/
|
*/
|
||||||
@Get('count')
|
@Get('count')
|
||||||
async filterCount(
|
async filterCount(
|
||||||
@Query(new SearchFilterPipe<NlpSample>({ allowedFields: ['text', 'type'] }))
|
@Query(
|
||||||
|
new SearchFilterPipe<NlpSample>({
|
||||||
|
allowedFields: ['text', 'type', 'language'],
|
||||||
|
}),
|
||||||
|
)
|
||||||
filters?: TFilterQuery<NlpSample>,
|
filters?: TFilterQuery<NlpSample>,
|
||||||
) {
|
) {
|
||||||
return await this.count(filters);
|
return await this.count(filters);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user