reexport fix

This commit is contained in:
Djkáťo 2023-09-30 20:30:50 +02:00
parent 4d697195e2
commit 30ff2b0712
2 changed files with 4 additions and 8 deletions

View file

@ -3,3 +3,4 @@ export * from "./env-apl";
export * from "./file-apl"; export * from "./file-apl";
export * from "./saleor-cloud-apl"; export * from "./saleor-cloud-apl";
export * from "./upstash-apl"; export * from "./upstash-apl";
export * from "./redis-apl"

View file

@ -5,11 +5,6 @@ import { createAPLDebug } from "./apl-debug";
const debug = createAPLDebug("UpstashAPL"); const debug = createAPLDebug("UpstashAPL");
export const UpstashAPLVariables = {
UPSTASH_TOKEN: "UPSTASH_TOKEN",
UPSTASH_URL: "UPSTASH_URL",
};
/** /**
* Redis APL * Redis APL
* @param redisUrl - in format redis[s]://[[username][:password]@][host][:port][/db-number], * @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); debug("RedisAPL: get - received: %j", res);
if (res) { if (res) {
return JSON.parse(res) as AuthData; return JSON.parse(res) as AuthData;
} }
return undefined; return undefined;
} catch (e) { } catch (e) {
await this.client.disconnect(); await this.client.disconnect();
return undefined; return undefined;