error message fixes

This commit is contained in:
Martin McKeaveney 2021-10-19 16:52:55 +01:00
parent 6efe219cea
commit 2b05b2c17b
4 changed files with 854 additions and 19 deletions

View File

@ -39,7 +39,7 @@
await admin.init() await admin.init()
$goto("../portal") $goto("../portal")
} catch (err) { } catch (err) {
notifications.error(`Failed to create admin user`) notifications.error(`Failed to create admin user: ${err}`)
} }
} }

View File

@ -104,6 +104,7 @@
"mongodb": "3.6.3", "mongodb": "3.6.3",
"mssql": "6.2.3", "mssql": "6.2.3",
"mysql": "2.18.1", "mysql": "2.18.1",
"mysql2": "^2.3.1",
"node-fetch": "2.6.0", "node-fetch": "2.6.0",
"open": "7.3.0", "open": "7.3.0",
"pg": "8.5.1", "pg": "8.5.1",

View File

@ -21,6 +21,10 @@ exports.endUserPing = async ctx => {
return return
} }
posthogClient.identify({
distinctId: ctx.user && ctx.user._id,
properties: {},
})
posthogClient.capture({ posthogClient.capture({
event: "budibase:end_user_ping", event: "budibase:end_user_ping",
distinctId: ctx.user && ctx.user._id, distinctId: ctx.user && ctx.user._id,

File diff suppressed because it is too large Load Diff