1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00
This commit is contained in:
Martin McKeaveney 2021-09-30 16:39:10 +01:00
parent 6f5567b4b6
commit 6ef1883328
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
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 () => {
return await API.post({

View file

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