Skip to content
Snippets Groups Projects
Commit 768d13f1 authored by GUILLORET SIMON's avatar GUILLORET SIMON
Browse files

feat: temporary response for generateRun so it doesn't make clients crash

parent 89278af3
Branches
2 merge requests!95V4.0,!91Feature/85 remove generate run
Pipeline #325369 passed with stages
in 1 minute and 35 seconds
......@@ -86,23 +86,8 @@ export class PartyController {
}
@Get('generateRun')
@UseGuards(AuthGuard, UserGuard)
async generateRun(@Req() req: UserRequest) {
const user = await this.userService.findOneWithPartyInfos(req.userId);
const quizId = await this.partyService.getQuizId(user.Party.id);
const runId = await this.runService.generateUniqueId();
const run = await this.runService.create(
runId,
quizId,
quizId,
user.id,
user.Party.id,
);
return { runId: run.id };
async generateRun() {
return 'Unused function';
}
@Get('start')
......
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