Commit 9f1ba0a3 authored by NGPixel's avatar NGPixel

fix: elastic apm rum client script

parent af054257
...@@ -3,7 +3,6 @@ const has = require('lodash/has') ...@@ -3,7 +3,6 @@ const has = require('lodash/has')
exports.up = async knex => { exports.up = async knex => {
// -> Fix 2.5.1 added isEnabled columns for beta users // -> Fix 2.5.1 added isEnabled columns for beta users
const localStrategy = await knex('authentication').where('key', 'local').first() const localStrategy = await knex('authentication').where('key', 'local').first()
console.info(localStrategy)
if (localStrategy && !has(localStrategy, 'isEnabled')) { if (localStrategy && !has(localStrategy, 'isEnabled')) {
await knex.schema await knex.schema
.alterTable('authentication', table => { .alterTable('authentication', table => {
......
head: | head: |
<!-- Elastic APM RUM --> <!-- Elastic APM RUM -->
<script async src="https://unpkg.com/@elastic/apm-rum/dist/bundles/elastic-apm-rum.umd.min.js"></script>
<script> <script>
elasticApm.init({ ;(function(d, s, c) {
serviceName: '{{serviceName}}', var j = d.createElement(s),
serverUrl: '{{serverUrl}}', t = d.getElementsByTagName(s)[0]
environment: '{{environment}}'
}) j.src = 'https://unpkg.com/@elastic/apm-rum/dist/bundles/elastic-apm-rum.umd.min.js'
j.onload = function() {elasticApm.init(c)}
t.parentNode.insertBefore(j, t)
})(document, 'script', {serviceName: '{{serviceName}}', serverUrl: '{{serverUrl}}', environment: '{{environment}}'})
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment