File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ export class FullFacetFilters {
10
10
fields ?: string ;
11
11
}
12
12
13
- export class SampleCountFilters {
14
- @ApiPropertyOptional ( )
15
- fields ?: string ;
16
- }
17
-
18
13
export class FullQueryFilters {
19
14
@ApiPropertyOptional ( )
20
15
limits ?: string ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ import { JWTUser } from "src/auth/interfaces/jwt-user.interface";
66
66
import { IDatasetFields } from "src/datasets/interfaces/dataset-filters.interface" ;
67
67
import { CreateSubAttachmentV3Dto } from "src/attachments/dto-obsolete/create-sub-attachment.v3.dto" ;
68
68
import { AuthenticatedPoliciesGuard } from "src/casl/guards/auth-check.guard" ;
69
- import { CountApiResponse , SampleCountFilters } from "src/common/types" ;
69
+ import { CountApiResponse } from "src/common/types" ;
70
70
import { OutputAttachmentV3Dto } from "src/attachments/dto-obsolete/output-attachment.v3.dto" ;
71
71
72
72
export class FindByIdAccessResponse {
@@ -340,11 +340,11 @@ export class SamplesController {
340
340
"It returns a number of samples matching the where filter if provided." ,
341
341
} )
342
342
@ApiQuery ( {
343
- name : "filter " ,
343
+ name : "fields " ,
344
344
description : "Database filters to apply when retrieve samples count" ,
345
345
required : false ,
346
- type : SampleCountFilters ,
347
- example : `{fields: ${ samplesFullQueryExampleFields } }` ,
346
+ type : String ,
347
+ example : samplesFullQueryExampleFields ,
348
348
} )
349
349
@ApiResponse ( {
350
350
status : HttpStatus . OK ,
You can’t perform that action at this time.
0 commit comments