removing optional chain
This commit is contained in:
parent
dbfd9ff877
commit
021c49ad8e
|
@ -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