removing optional chain
This commit is contained in:
parent
7a7fd6c02f
commit
bdc004d18e
|
@ -17,7 +17,7 @@ exports.endUserPing = async (ctx, next) => {
|
||||||
if (!posthogClient) return next()
|
if (!posthogClient) return next()
|
||||||
|
|
||||||
posthogClient.capture("budibase:end_user_ping", {
|
posthogClient.capture("budibase:end_user_ping", {
|
||||||
userId: ctx.user?._id,
|
userId: ctx.user && ctx.user._id,
|
||||||
appId: ctx.appId,
|
appId: ctx.appId,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue