完成競賽編輯功能
This commit is contained in:
@@ -131,6 +131,9 @@ export async function PUT(request: NextRequest, { params }: { params: { id: stri
|
||||
if (body.teams !== undefined) {
|
||||
await CompetitionService.addCompetitionTeams(id, body.teams || []);
|
||||
}
|
||||
if (body.participatingApps !== undefined) {
|
||||
await CompetitionService.addCompetitionApps(id, body.participatingApps || []);
|
||||
}
|
||||
if (body.awardTypes !== undefined) {
|
||||
await CompetitionService.addCompetitionAwardTypes(id, body.awardTypes || []);
|
||||
}
|
||||
|
Reference in New Issue
Block a user