diff --git a/apps/backend/src/app/machines/machines.service.ts b/apps/backend/src/app/machines/machines.service.ts index 37a9e64..04d5337 100644 --- a/apps/backend/src/app/machines/machines.service.ts +++ b/apps/backend/src/app/machines/machines.service.ts @@ -149,7 +149,7 @@ export class MachinesService { if (fileType.length !== 1) throw new NotFoundException("File type not found."); - const insertFileType = await this.database + return await this.database .use() .insert(FilesTypeForMachine) .values({ @@ -158,7 +158,6 @@ export class MachinesService { }) .prepare("insertFileTypeForMachine") .execute(); - return insertFileType; } async getFilesTypes(machineId: string) {