From 29c792635c5c4f41da894b4515ede1d206148e68 Mon Sep 17 00:00:00 2001 From: hansputera Date: Mon, 15 Nov 2021 15:53:03 +0700 Subject: [PATCH] remove SESSIONS from envrionment example file --- .env.example | 3 +-- api/stored-links.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index dfe8d8b..c705770 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1 @@ -REDIS_URL= -SESSIONS= \ No newline at end of file +REDIS_URL= \ No newline at end of file diff --git a/api/stored-links.ts b/api/stored-links.ts index d4fb9ad..66dc540 100644 --- a/api/stored-links.ts +++ b/api/stored-links.ts @@ -2,7 +2,7 @@ import {VercelRequest, VercelResponse} from '@vercel/node'; import {matchLink} from '../lib/providers/util'; import {client} from '../lib/redis'; -export default async (req: VercelRequest, res: VercelResponse) => { +export default async (_: VercelRequest, res: VercelResponse) => { const keys = await client.keys('*'); res.status(200).json(keys.filter((x) => matchLink(x)));