mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
fix: missing user id in segment update (#5414)
This commit is contained in:
parent
ce382a4bf9
commit
295b0c073e
@ -47,7 +47,7 @@ export interface ISegmentService {
|
|||||||
update(
|
update(
|
||||||
id: number,
|
id: number,
|
||||||
data: UpsertSegmentSchema,
|
data: UpsertSegmentSchema,
|
||||||
user: Partial<Pick<IUser, 'username' | 'email'>>,
|
user: Partial<Pick<IUser, 'username' | 'email' | 'id'>>,
|
||||||
): Promise<void>;
|
): Promise<void>;
|
||||||
|
|
||||||
unprotectedUpdate(
|
unprotectedUpdate(
|
||||||
|
@ -61,6 +61,7 @@ const updateSegment = (
|
|||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
return app.services.segmentService.update(id, postData, {
|
return app.services.segmentService.update(id, postData, {
|
||||||
email: 'test@example.com',
|
email: 'test@example.com',
|
||||||
|
id: 1,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user