mirror of
https://github.com/detleph/server.git
synced 2026-09-04 23:45:00 +02:00
Merge branch 'feature-roles' of github.com:detleph/server into feature-roles
This commit is contained in:
@@ -164,11 +164,11 @@ export const createDiscipline = async (req: Request<{ eventPid: string }, {}, Cr
|
||||
);
|
||||
}
|
||||
|
||||
const { name, minTeamSize, maxTeamSize, briefDescription } = result.data;
|
||||
const { name, minTeamSize, maxTeamSize, briefDescription, fullDescription } = result.data;
|
||||
|
||||
try {
|
||||
const discipline = await prisma.discipline.create({
|
||||
data: { name, minTeamSize, maxTeamSize, briefDescription, event: { connect: { pid: req.params.eventPid } } },
|
||||
data: { name, minTeamSize, maxTeamSize, briefDescription, fullDescription, event: { connect: { pid: req.params.eventPid } } },
|
||||
select: basicDiscipline,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user