removing optional chain

This commit is contained in:
Martin McKeaveney 2021-09-30 17:04:55 +01:00
parent dbfd9ff877
commit 021c49ad8e
1 changed files with 1 additions and 1 deletions

View File

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