Little bugfix

ref #13
This commit is contained in:
2020-12-05 11:36:33 +01:00
parent aca13f7308
commit 9c63a34fe1
2 changed files with 5 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ export class RunnerController {
@ResponseSchema(RunnerNotFoundError, { statusCode: 404 })
@OpenAPI({ description: 'Delete a specified runner (if it exists).' })
async remove(@Param('id') id: number, @QueryParam("force") force: boolean) {
let runner = await this.runnerRepository.findOne({ id: id });
const runner = await this.runnerRepository.findOne({ id: id });
if (!runner) {
throw new RunnerNotFoundError();