From 295b0c073e8eb903536438522fb4272006a02de2 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Fri, 24 Nov 2023 11:17:36 +0100 Subject: [PATCH] fix: missing user id in segment update (#5414) --- src/lib/segments/segment-service-interface.ts | 2 +- src/test/e2e/api/client/segment.e2e.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/segments/segment-service-interface.ts b/src/lib/segments/segment-service-interface.ts index 08fc3b0cb8..0be5052590 100644 --- a/src/lib/segments/segment-service-interface.ts +++ b/src/lib/segments/segment-service-interface.ts @@ -47,7 +47,7 @@ export interface ISegmentService { update( id: number, data: UpsertSegmentSchema, - user: Partial>, + user: Partial>, ): Promise; unprotectedUpdate( diff --git a/src/test/e2e/api/client/segment.e2e.test.ts b/src/test/e2e/api/client/segment.e2e.test.ts index dce3874f92..181a0ae4d6 100644 --- a/src/test/e2e/api/client/segment.e2e.test.ts +++ b/src/test/e2e/api/client/segment.e2e.test.ts @@ -61,6 +61,7 @@ const updateSegment = ( ): Promise => { return app.services.segmentService.update(id, postData, { email: 'test@example.com', + id: 1, }); };