Commit fb8bed58 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Remove unecessary line

parent ca03ba0a
Pipeline #2354 passed with stages
in 2 minutes and 15 seconds
......@@ -44,8 +44,7 @@
"rxjs": "^6.2.2",
"serve-favicon": "^2.5.0",
"typeorm": "^0.2.20",
"typescript": "^3.0.1",
"uuid": "^3.3.2"
"typescript": "^3.0.1"
},
"devDependencies": {
"@nestjs/testing": "^5.4.0",
......@@ -82,4 +81,4 @@
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
}
\ No newline at end of file
import { ForbiddenException, Injectable, InternalServerErrorException, Logger, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import * as uuidv4 from 'uuid/v4';
import { ConfigService } from '../configuration/config.service';
import { LinksService } from '../links/links.service';
import { OrganizationDTO, OrganizationsRO } from './organization.dto';
......@@ -130,7 +129,6 @@ export class OrganizationsService {
// cf https://github.com/typeorm/typeorm/issues/2924#issuecomment-430265476
const organizationEntity = Object.assign(new Organization(), organization);
organizationEntity.uuid = organizationEntity.uuid ? organizationEntity.uuid : uuidv4();
const organizationCreated = await this.organizationRepository.save(organizationEntity).catch((error) => {
this.logger.error(`Error saving the organization into the database.`, `${error}`, `${OrganizationsService.name} - ${this.create.name}`);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment