1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00

removing optional chain

This commit is contained in:
Martin McKeaveney 2021-09-30 17:04:55 +01:00
parent dbfd9ff877
commit 021c49ad8e

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