Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix: profileId

Carl-Gerhard Lindesvärdd32a279949e7
diff --git a/apps/api/src/controllers/track.controller.ts b/apps/api/src/controllers/track.controller.ts
index bf90ce3d6..74a2da76a 100644
--- a/apps/api/src/controllers/track.controller.ts
+++ b/apps/api/src/controllers/track.controller.ts
@@ -49,7 +49,7 @@ function getIdentity(body: ITrackHandlerPayload): IIdentifyPayload | undefined {
identity ||
(body.payload.profileId
? {
- profileId: body.payload.profileId,
+ profileId: String(body.payload.profileId),
}
: undefined)
);