mirror of
https://github.com/hexastack/hexabot
synced 2025-04-10 15:55:55 +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')
|
||||
async filterCount(
|
||||
@Query(new SearchFilterPipe<NlpSample>({ allowedFields: ['text', 'type'] }))
|
||||
@Query(
|
||||
new SearchFilterPipe<NlpSample>({
|
||||
allowedFields: ['text', 'type', 'language'],
|
||||
}),
|
||||
)
|
||||
filters?: TFilterQuery<NlpSample>,
|
||||
) {
|
||||
return await this.count(filters);
|
||||
|
Loading…
Reference in New Issue
Block a user