mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: Audit events for segments should include project id (#5401)
This commit is contained in:
parent
937a605888
commit
ce01687e3b
@ -147,6 +147,7 @@ export class SegmentService implements ISegmentService {
|
||||
type: SEGMENT_CREATED,
|
||||
createdBy: user.email || user.username || 'unknown',
|
||||
data: segment,
|
||||
project: segment.project,
|
||||
});
|
||||
|
||||
return segment;
|
||||
@ -180,6 +181,7 @@ export class SegmentService implements ISegmentService {
|
||||
createdBy: user.email || user.username || 'unknown',
|
||||
data: segment,
|
||||
preData,
|
||||
project: segment.project,
|
||||
});
|
||||
}
|
||||
|
||||
@ -191,6 +193,7 @@ export class SegmentService implements ISegmentService {
|
||||
type: SEGMENT_DELETED,
|
||||
createdBy: user.email || user.username,
|
||||
preData: segment,
|
||||
project: segment.project,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user