Skip to content

Commit

Permalink
REFACTOR: test if variable can be passed down
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Oct 13, 2020
1 parent c2b362e commit 65bc435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = async () => {

global.isAliveStatus = true
global.errorKafkaConsumer = "Error: "
global.isReadyStatus = false

ingressException.forEach(data => ingresses.set(data.ingress, data))

Expand All @@ -45,9 +46,8 @@ module.exports = async () => {
fastify.route(require('./routes/its-ready'));
fastify.route(require('./routes/libs'));
fastify.route(require('./routes/your-ip'));

const collectTest = require('./routes/collect-test');
fastify.route(collectTest(ingresses))

fastify.route(require('./routes/collect-test')(ingresses))

fastify.get(paths.SCHEMAS, (request, reply) => { reply.send(fastify.getSchemas()) })
return fastify;
Expand Down

0 comments on commit 65bc435

Please sign in to comment.