Now creating runner orgs again

ref #13
This commit is contained in:
Nicolai Ort 2020-12-03 19:25:02 +01:00
parent af75d6cfec
commit ec2ff981b2

View File

@ -11,13 +11,13 @@ import { RunnerGroup } from '../models/RunnerGroup';
@JsonController('/organisations') @JsonController('/organisations')
//@Authorized('RUNNERS:read') //@Authorized('RUNNERS:read')
export class RunnerOrganisationController { export class RunnerOrganisationController {
private runnerOrganisationRepository: Repository<RunnerGroup>; private runnerOrganisationRepository: Repository<RunnerOrganisation>;
/** /**
* Gets the repository of this controller's model/entity. * Gets the repository of this controller's model/entity.
*/ */
constructor() { constructor() {
this.runnerOrganisationRepository = getConnectionManager().get().getRepository(RunnerGroup); this.runnerOrganisationRepository = getConnectionManager().get().getRepository(RunnerOrganisation);
} }
@Get() @Get()