This commit is contained in:
Martin McKeaveney 2021-09-30 16:39:10 +01:00
parent a251c8bfd0
commit 665a9620a4
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import API from "./api" import API from "./api"
/** /**
* Notifies that an end user client app has been loaded. * Notifies that an end user client app has been loaded.
*/ */
export const pingEndUser = async () => { export const pingEndUser = async () => {
return await API.post({ return await API.post({

View File

@ -18,10 +18,10 @@ exports.endUserPing = async (ctx, next) => {
posthogClient.capture("budibase:end_user_ping", { posthogClient.capture("budibase:end_user_ping", {
userId: ctx.user?._id, userId: ctx.user?._id,
appId: ctx.appId appId: ctx.appId,
}) })
ctx.body = { ctx.body = {
ping: true ping: true,
} }
} }