1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: missing user id in segment update (#5414)

This commit is contained in:
Mateusz Kwasniewski 2023-11-24 11:17:36 +01:00 committed by GitHub
parent ce382a4bf9
commit 295b0c073e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export interface ISegmentService {
update(
id: number,
data: UpsertSegmentSchema,
user: Partial<Pick<IUser, 'username' | 'email'>>,
user: Partial<Pick<IUser, 'username' | 'email' | 'id'>>,
): Promise<void>;
unprotectedUpdate(

View File

@ -61,6 +61,7 @@ const updateSegment = (
): Promise<void> => {
return app.services.segmentService.update(id, postData, {
email: 'test@example.com',
id: 1,
});
};