fix: nlp-sample pagination

This commit is contained in:
abdou6666 2025-03-24 10:30:17 +01:00
parent 13cf35b828
commit bfd8f4170f

View File

@ -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);