Browse Source

removing optional chain

pull/2824/head
Martin McKeaveney 5 years ago
parent
commit
bdc004d18e
  1. 2
      packages/server/src/api/controllers/analytics.js

2
packages/server/src/api/controllers/analytics.js

@ -17,7 +17,7 @@ exports.endUserPing = async (ctx, next) => {
if (!posthogClient) return next()
posthogClient.capture("budibase:end_user_ping", {
userId: ctx.user?._id,
userId: ctx.user && ctx.user._id,
appId: ctx.appId,
})

Loading…
Cancel
Save