Commit 426634bb authored by nanahira's avatar nanahira

fix import dto

parent 0311c99f
......@@ -56,7 +56,7 @@ export class RestfulFactory<T> {
this.entityClass,
getSpecificFields(this.entityClass, 'notWritable') as (keyof T)[],
) as ClassType<T>;
readonly importDto = ImportDataDto(this.createDto);
readonly importDto = ImportDataDto(this.entityClass);
readonly findAllDto = PartialType(this.basicDto) as ClassType<T>;
readonly updateDto = PartialType(
OmitType(
......@@ -160,7 +160,7 @@ export class RestfulFactory<T> {
summary: `Import ${this.entityClass.name}`,
...extras,
}),
ApiBody({ type: this.importDto }),
ApiBody({ type: ImportDataDto(this.createDto) }),
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