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, }); };