parent
73b1114883
commit
946efef252
@ -42,8 +42,8 @@ export class RunnerSelfServiceController {
|
|||||||
const org = await this.groupRepository.findOne({ id: 1 });
|
const org = await this.groupRepository.findOne({ id: 1 });
|
||||||
if (!org) { throw new RunnerGroupNotFoundError(); }
|
if (!org) { throw new RunnerGroupNotFoundError(); }
|
||||||
|
|
||||||
|
createRunner.team = null;
|
||||||
let runner = await createRunner.toEntity(org);
|
let runner = await createRunner.toEntity(org);
|
||||||
runner.group = org;
|
|
||||||
|
|
||||||
runner = await this.runnerRepository.save(runner);
|
runner = await this.runnerRepository.save(runner);
|
||||||
return new ResponseSelfServiceRunner(await this.runnerRepository.findOne(runner, { relations: ['scans', 'group', 'scans.track', 'cards', 'distanceDonations', 'distanceDonations.donor', 'distanceDonations.runner', 'distanceDonations.runner.scans', 'distanceDonations.runner.scans.track'] }));
|
return new ResponseSelfServiceRunner(await this.runnerRepository.findOne(runner, { relations: ['scans', 'group', 'scans.track', 'cards', 'distanceDonations', 'distanceDonations.donor', 'distanceDonations.runner', 'distanceDonations.runner.scans', 'distanceDonations.runner.scans.track'] }));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user