1
0
Fork 0
mirror of synced 2024-06-30 12:00:31 +12:00

removing optional chain

This commit is contained in:
Martin McKeaveney 2021-09-30 17:04:55 +01:00
parent 7a7fd6c02f
commit bdc004d18e

View file

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