Merge pull request #151 from dadosfera/fix/old-pipelines

FIX: Stop using old pipelines
This commit is contained in:
Gabriel Amorim
2022-10-07 15:41:13 -03:00
committed by GitHub
2 changed files with 2 additions and 14 deletions
@@ -103,14 +103,9 @@ export class PipelinesController {
});
const response = await this.pipelinesClientService.findAll(data, metadata);
const oldResponse = await this.oldPipelinesService.findAll({
customer_name,
user_id,
customer_id,
});
return {
pipelines: [...response.pipelines, ...oldResponse.pipelines],
pipelines: [...response.pipelines],
};
}
@@ -149,13 +144,6 @@ export class PipelinesController {
: {},
});
return res;
})
.catch(async (err) => {
this.logger.error(err);
return await this.oldPipelinesService.findOne({
id,
info: { customer_id, customer: customer_name, user_id },
});
});
return result;
}
+1 -1
View File
File diff suppressed because one or more lines are too long