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

Removing useless code

parent 16d1600b
Pipeline #2365 passed with stages
in 30 seconds
......@@ -33,13 +33,6 @@ export class LinksService {
const sort = query.sort_by ? query.sort_by.split('.') : ['name', 'ASC'];
qb.orderBy(sort[0], sort[1]);
if ('filter' in query) {
const filterJSON = JSON.parse(query.filter);
if (filterJSON.organizationId) {
qb.where('"organizationId" = ' + filterJSON.organizationId);
}
}
const linksCount = await qb.getCount().catch((error) => {
this.logger.error(`Error while getting the count of links.`, `${error}`, `${LinksService.name} - ${this.findAll.name}`);
throw new InternalServerErrorException({ error, message: 'Error while getting the count of links.' });
......
Supports Markdown
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