File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ const { formaDeExecucao } = require('./utils/ambiente')
1515const ehAmbienteDeDesenvolvimento = process . env . NODE_ENV === 'serverest-development'
1616const ehAmbienteDeTestes = process . env . NODE_ENV === 'serverest-test'
1717
18- const moesifMiddleware = moesif ( {
19- applicationId : 'eyJhcHAiOiIxNTA6MTU1MCIsInZlciI6IjIuMCIsIm9yZyI6IjQ5MToxMTIxIiwiaWF0IjoxNTk4OTE4NDAwfQ.e0E6Qhz1o1Jjs5prulHDYEBlv0juruWs_btjq2mong8' ,
20- identifyUser : ( req , res ) => { return formaDeExecucao ( ) } ,
21- identifyCompany : ( req , res ) => { return version }
22- } )
23-
24- module . exports = app => {
18+ module . exports = async app => {
2519 if ( ehAmbienteDeDesenvolvimento || ehAmbienteDeTestes ) {
2620 return
2721 }
22+ const user = await formaDeExecucao ( )
23+ const moesifMiddleware = moesif ( {
24+ applicationId : 'eyJhcHAiOiIxNTA6MTU1MCIsInZlciI6IjIuMCIsIm9yZyI6IjQ5MToxMTIxIiwiaWF0IjoxNTk4OTE4NDAwfQ.e0E6Qhz1o1Jjs5prulHDYEBlv0juruWs_btjq2mong8' ,
25+ identifyUser : ( req , res ) => { return user } ,
26+ identifyCompany : ( req , res ) => { return version }
27+ } )
2828 app . use ( moesifMiddleware )
2929}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ async function formaDeExecucao () {
55 switch ( nomeDoUsuario ) {
66 case 'root' :
77 return 'docker'
8- case 'd2c2517805206e46be176699782a8820 ' :
8+ case 'no-username-3798 ' :
99 return 'serverest.dev'
1010 default :
1111 return 'npm'
You can’t perform that action at this time.
0 commit comments