File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
services/workflows-service/src Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { CurrentProject } from '@/common/decorators/current-project.decorator';
2121import { getFileMetadata } from '@/common/get-file-metadata/get-file-metadata' ;
2222
2323// Temporarily identical to StorageControllerInternal
24+ @swagger . ApiBearerAuth ( )
2425@swagger . ApiTags ( 'Storage' )
2526@common . Controller ( 'external/storage' )
2627export class StorageControllerExternal {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { oneOf } from '@/common/decorators/one-of.decorator';
22import { SortOrder } from '@/common/query-filters/sort-order' ;
33import { ApiPropertyOptional } from '@nestjs/swagger' ;
44import { WorkflowRuntimeDataStatus } from '@prisma/client' ;
5- import { Type } from 'class-transformer' ;
5+ import { Transform , Type } from 'class-transformer' ;
66import { IsNumber , IsOptional } from 'class-validator' ;
77
88export class GetWorkflowsRuntimeInputDto {
@@ -34,11 +34,15 @@ export class GetWorkflowsRuntimeInputDto {
3434 'createdBy' ,
3535 'createdAt' ,
3636 ] ,
37+ default : 'createdAt' ,
3738 } )
39+ @Transform ( ( { value } ) => value || 'createdAt' )
3840 orderBy ?: string ;
3941
4042 @ApiPropertyOptional ( {
4143 enum : [ 'asc' , 'desc' ] ,
44+ default : 'desc' ,
4245 } )
46+ @Transform ( ( { value } ) => value || 'desc' )
4347 orderDirection ?: SortOrder ;
4448}
You can’t perform that action at this time.
0 commit comments