Skip to content

Commit

Permalink
Remove deprecated way to start fastify server
Browse files Browse the repository at this point in the history
  • Loading branch information
pastelsky committed Jun 26, 2023
1 parent b4ccda4 commit 42c1c92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fastify.get('/exports', async (req, res) => {
})

fastify
.listen(7002)
.listen({ port: 7002 })
.then(() => {
console.log(`server listening on ${fastify.server.address().port}`)
})
Expand Down
2 changes: 1 addition & 1 deletion cache-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fastify.get('/exports-cache', getExportsSizeMiddlware)
fastify.post('/exports-cache', postExportsSizeMiddleware)

fastify
.listen(7001)
.listen({ port: 7001 })
.then(() => {
console.log(`server listening on ${fastify.server.address().port}`)
})
Expand Down

0 comments on commit 42c1c92

Please sign in to comment.