From 30ff2b0712059cb8841313ea56ed074e09bb5d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Djk=C3=A1=C5=A5o?= Date: Sat, 30 Sep 2023 20:30:50 +0200 Subject: [PATCH] reexport fix --- src/APL/index.ts | 1 + src/APL/redis-apl.ts | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/APL/index.ts b/src/APL/index.ts index 6441263..7b1636b 100644 --- a/src/APL/index.ts +++ b/src/APL/index.ts @@ -3,3 +3,4 @@ export * from "./env-apl"; export * from "./file-apl"; export * from "./saleor-cloud-apl"; export * from "./upstash-apl"; +export * from "./redis-apl" diff --git a/src/APL/redis-apl.ts b/src/APL/redis-apl.ts index 8183269..8e0d85e 100644 --- a/src/APL/redis-apl.ts +++ b/src/APL/redis-apl.ts @@ -5,11 +5,6 @@ import { createAPLDebug } from "./apl-debug"; const debug = createAPLDebug("UpstashAPL"); -export const UpstashAPLVariables = { - UPSTASH_TOKEN: "UPSTASH_TOKEN", - UPSTASH_URL: "UPSTASH_URL", -}; - /** * Redis APL * @param redisUrl - in format redis[s]://[[username][:password]@][host][:port][/db-number], @@ -40,9 +35,9 @@ export class RedisAPL implements APL { debug("RedisAPL: get - received: %j", res); if (res) { return JSON.parse(res) as AuthData; - } - return undefined; - + } + return undefined; + } catch (e) { await this.client.disconnect(); return undefined;