Commit 6231c9fa authored by nanahira's avatar nanahira

fix

parent f980d71e
Pipeline #35441 failed with stages
in 33 seconds
......@@ -6,6 +6,7 @@ import { ApiMycardUser, MycardUser, PutMycardUser } from 'nestjs-mycard';
import { ApiTags } from '@nestjs/swagger';
const factory = new RestfulFactory(Participant);
class CreateParticipantDto extends factory.createDto {}
class FindParticipantDto extends factory.findAllDto {}
class UpdateParticipantDto extends factory.updateDto {}
class ImportParticipantDto extends factory.importDto {}
......@@ -20,7 +21,7 @@ export class ParticipantController {
@factory.create()
async create(
@factory.createParam() participant: Participant,
@factory.createParam() participant: CreateParticipantDto,
@PutMycardUser() user: MycardUser,
) {
return this.participantService.createParticipant(participant, user);
......
......@@ -11,6 +11,7 @@ import {
} from '@nestjs/swagger';
const factory = new RestfulFactory(Tournament);
class CreateTournamentDto extends factory.createDto {}
class FindTournamentDto extends factory.findAllDto {}
class UpdateTournamentDto extends factory.updateDto {}
......@@ -24,7 +25,7 @@ export class TournamentController {
@factory.create()
async create(
@factory.createParam() tournament: Tournament,
@factory.createParam() tournament: CreateTournamentDto,
@PutMycardUser() user: MycardUser,
) {
return this.tournamentService.createTournament(tournament, user);
......
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