@ -1,7 +1,7 @@
import API from "./api"
/**
* Notifies that an end user client app has been loaded.
*/
export const pingEndUser = async () => {
return await API.post({
@ -18,10 +18,10 @@ exports.endUserPing = async (ctx, next) => {
posthogClient.capture("budibase:end_user_ping", {
userId: ctx.user?._id,
appId: ctx.appId
appId: ctx.appId,
})
ctx.body = {
ping: true
ping: true,
}