瀏覽代碼

fix server error after upgrading packages

Signed-off-by: shanghaikid <jiangruiyi@gmail.com>
shanghaikid 2 年之前
父節點
當前提交
040f578e81
共有 1 個文件被更改,包括 4 次插入0 次删除
  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;
 }