Skip to content

Commit

Permalink
[backend] Deepscan issue (#5257)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Dec 19, 2023
1 parent 7a81178 commit dbe1e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opencti-platform/opencti-graphql/src/config/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ export const logApp = {
// In case of OpenCTI error
if (meta.error) { // If meta contains an error
let targetError = meta.error;
if (targetError instanceof ApolloError && meta.error?.data?.error) {
targetError = meta.error.data.error;
if (targetError instanceof ApolloError && targetError.data?.error) {
targetError = targetError.data.error;
}
const basicError = { error_code: `${message}_${targetError.name}`, stack: targetError.stack };
const extraInfo = R.dissoc('error', targetError.data);
Expand Down

0 comments on commit dbe1e03

Please sign in to comment.