Skip to content

Commit

Permalink
Misuse of env ref fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
stagrim committed Nov 11, 2023
1 parent 91114a2 commit e89e20b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gasta/src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import pkg from "js-sha3";
import { building, dev } from "$app/environment";
import type { CookieSerializeOptions } from 'cookie';
import { Redis } from "ioredis";
import { REDIS_URL } from "$env/static/private";
const { sha3_512 } = pkg;

export type Login = {
Expand Down Expand Up @@ -44,7 +43,7 @@ if (!building) {
console.debug({msg: 'connection failed, retrying', err});
});

redis = new Redis(REDIS_URL);
redis = new Redis(env.REDIS_URL);
}

export const login = async (username: string, password: string, user_agent: string): Promise<Login> => {
Expand Down

0 comments on commit e89e20b

Please sign in to comment.