Update redis package.
This commit is contained in:
1 parent
6291654748
commit
7f1f3b685a
8 files changed
+26
-29
No files matched your search
@@ -8,7 +8,7 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
await useAuth(req, res);
|
||||
|
||||
if (req.method === 'POST') {
|
||||
if (redis.enabled) {
|
||||
if (redis) {
|
||||
await redis.del(getAuthToken(req));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user