Commit 426634bb authored by nanahira's avatar nanahira

fix import dto

parent 0311c99f
...@@ -56,7 +56,7 @@ export class RestfulFactory<T> { ...@@ -56,7 +56,7 @@ export class RestfulFactory<T> {
this.entityClass, this.entityClass,
getSpecificFields(this.entityClass, 'notWritable') as (keyof T)[], getSpecificFields(this.entityClass, 'notWritable') as (keyof T)[],
) as ClassType<T>; ) as ClassType<T>;
readonly importDto = ImportDataDto(this.createDto); readonly importDto = ImportDataDto(this.entityClass);
readonly findAllDto = PartialType(this.basicDto) as ClassType<T>; readonly findAllDto = PartialType(this.basicDto) as ClassType<T>;
readonly updateDto = PartialType( readonly updateDto = PartialType(
OmitType( OmitType(
...@@ -160,7 +160,7 @@ export class RestfulFactory<T> { ...@@ -160,7 +160,7 @@ export class RestfulFactory<T> {
summary: `Import ${this.entityClass.name}`, summary: `Import ${this.entityClass.name}`,
...extras, ...extras,
}), }),
ApiBody({ type: this.importDto }), ApiBody({ type: ImportDataDto(this.createDto) }),
ApiCreatedResponse({ type: this.importReturnMessageDto }), ApiCreatedResponse({ type: this.importReturnMessageDto }),
]); ]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment