Browse Source

fix server error after upgrading packages

Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
shanghaikid 2 years ago
parent
commit
040f578e81
1 changed files with 4 additions and 0 deletions
  1. 4 0
      server/src/collections/dto.ts

+ 4 - 0
server/src/collections/dto.ts

@@ -49,12 +49,16 @@ export class InsertDataDto {
 }
 
 export class ImportSampleDto {
+  @IsOptional()
   readonly collection_name?: string;
+  @IsString()
   readonly size: string;
 }
 
 export class GetReplicasDto {
+  @IsString()
   readonly collectionID: string;
+  @IsOptional()
   readonly with_shard_nodes?: boolean;
 }