Skip to content

Commit a13d929

Browse files
committed
Updated readme
1 parent fdd1eba commit a13d929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fastify.get('/db_data', async function (req, reply) {
3131
return result.rows
3232
} finally {
3333
if (conn) {
34-
conn.close().catch((err) => {})
34+
conn.close().catch((err) => {})
3535
}
3636
}
3737
})
@@ -40,7 +40,7 @@ fastify.listen(3000, (err) => {
4040
if (err) {
4141
fastify.log.error(err)
4242
// Manually close since Fastify did not boot correctly.
43-
fastify.oracle.close()
43+
fastify.close()
4444
process.exit(1)
4545
}
4646

0 commit comments

Comments
 (0)