Skip to content

Commit

Permalink
fix: call transformSpecification correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Nov 6, 2023
1 parent da04d53 commit eb0def5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function fastifySwagger (fastify, opts, done) {
reply.send(transformSpecification(rfdc(fastify.swagger()), req, reply))
}
: function (req, reply) {
reply.send(transformSpecification(fastify.swagger()), req, reply)
reply.send(transformSpecification(fastify.swagger(), req, reply))
}
: function (req, reply) {
reply.send(fastify.swagger())
Expand All @@ -191,7 +191,7 @@ function fastifySwagger (fastify, opts, done) {
: function (req, reply) {
reply
.type('application/x-yaml')
.send(yaml.stringify(transformSpecification(fastify.swagger()), req, reply))
.send(yaml.stringify(transformSpecification(fastify.swagger(), req, reply)))
}
: function (req, reply) {
reply
Expand Down

0 comments on commit eb0def5

Please sign in to comment.