@@ -52,8 +52,9 @@ export class ScanController {
|
||||
@OpenAPI({ description: 'Create a new runner. <br> Please remeber to provide the runner\'s group\'s id.' })
|
||||
async post(@Body({ validate: true }) createScan: CreateScan) {
|
||||
let scan = await createScan.toScan();
|
||||
scan = await this.scanRepository.save(scan)
|
||||
return (await this.scanRepository.findOne(scan)).toResponse();
|
||||
scan = await this.scanRepository.save(scan);
|
||||
console.log(scan);
|
||||
return (await this.scanRepository.findOne({ id: scan.id })).toResponse();
|
||||
}
|
||||
|
||||
// @Put('/:id')
|
||||
|
||||
Reference in New Issue
Block a user