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
commit 6d567f29f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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