Merge pull request #855 from Hexastack/fix/pagination-nlp-sample

fix: nlp-sample pagination
This commit is contained in:
Med Marrouchi
2025-03-24 12:34:44 +01:00
committed by GitHub

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