Skip to content

Commit

Permalink
Update apiTrackingMonster.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuschelCGN authored Jan 8, 2024
1 parent 695c0cd commit f01d74c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/routes/apiTrackingMonster.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { diff } = require('deep-object-diff')
const trackedCommand = require('../lib/poracleMessage/commands/tracked')
const tracked = require('../lib/poracleMessage/commands/tracked')

module.exports = async (fastify, options, next) => {
module.exports = async (fastify, options) => {
fastify.get('/api/tracking/pokemon/:id', options, async (req) => {
fastify.logger.info(`API: ${req.ip} ${req.routeOptions.method} ${req.routeOptions.url}`)

Expand Down Expand Up @@ -276,6 +276,4 @@ module.exports = async (fastify, options, next) => {
status: 'ok',
}
})

next()
}

0 comments on commit f01d74c

Please sign in to comment.