fix user ping event

This commit is contained in:
Martin McKeaveney 2021-10-07 12:15:05 +01:00
parent b9a47f096d
commit eead9b07b3
1 changed files with 6 additions and 3 deletions

View File

@ -21,9 +21,12 @@ exports.endUserPing = async ctx => {
return
}
posthogClient.capture("budibase:end_user_ping", {
userId: ctx.user && ctx.user._id,
appId: ctx.appId,
posthogClient.capture({
event: "budibase:end_user_ping",
distinctId: ctx.user && ctx.user._id,
properties: {
appId: ctx.appId,
},
})
ctx.body = {