Skip to content

Commit

Permalink
[backend] fix instance context redirection in Activity events (#6549)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archidoit committed Apr 3, 2024
1 parent 2f84e00 commit 641652b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencti-platform/opencti-graphql/src/resolvers/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const logResolvers = {
user: (log, _, context) => creatorLoader.load(log.applicant_id || log.user_id, context, context.user),
context_data: (log, _) => (log.context_data?.id ? { ...log.context_data, entity_id: log.context_data.id } : log.context_data),
raw_data: (log, _, __) => JSON.stringify(log, null, 2),
context_uri: (log, _, __) => (log.context_data.id ? `/dashboard/id/${log.context_data.id}` : undefined),
context_uri: (log, _, __) => (log.context_data.id && log.entity_type === 'History' ? `/dashboard/id/${log.context_data.id}` : undefined),
event_status: (log, _, __) => log.event_status ?? 'success',
event_scope: (log, _, __) => log.event_scope ?? log.event_type, // Retro compatibility
},
Expand Down

0 comments on commit 641652b

Please sign in to comment.