Fixed the dynamic class creation
This commit is contained in:
@@ -25,6 +25,7 @@ export class ImportSchoolRunner extends ImportRunner {
|
||||
newRunner.middlename = this.middlename;
|
||||
newRunner.lastname = this.lastname;
|
||||
newRunner.group = (await this.getGroup(orgID)).id;
|
||||
console.log(newRunner.group)
|
||||
|
||||
return newRunner;
|
||||
}
|
||||
@@ -44,7 +45,7 @@ export class ImportSchoolRunner extends ImportRunner {
|
||||
let newRunnerTeam: RunnerTeam = new RunnerTeam();
|
||||
newRunnerTeam.name = this.class;
|
||||
newRunnerTeam.parentGroup = org;
|
||||
team = await getConnectionManager().get().getRepository(RunnerTeam).create(newRunnerTeam);
|
||||
team = await getConnectionManager().get().getRepository(RunnerTeam).save(newRunnerTeam);
|
||||
}
|
||||
|
||||
return team;
|
||||
|
||||
Reference in New Issue
Block a user