Skip to content

Commit 34e95ac

Browse files
committed
Updated README.md
1 parent 4a528ea commit 34e95ac

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
@@ -23,14 +23,14 @@ fastify.register(require('fastify-redis'), {
2323
})
2424

2525
fastify.get('/foo', (req, reply) => {
26-
const { redis } = fastify.redis
26+
const { redis } = fastify
2727
redis.get(req.query.key, (err, val) => {
2828
reply.send(err || val)
2929
})
3030
})
3131

3232
fastify.post('/foo', (req, reply) => {
33-
const { redis } = fastify.redis
33+
const { redis } = fastify
3434
redis.set(req.body.key, req.body.value, (err) => {
3535
reply.send(err || { status: 'ok' })
3636
})

0 commit comments

Comments
 (0)