fix reading PGHOST env var

pull/6811/head
Ben McCann 5 years ago
parent 798b53dc12
commit d860721571

@ -8,8 +8,7 @@ import { query } from './utils/db';
/** @type {import('@sveltejs/kit').Handle} */ /** @type {import('@sveltejs/kit').Handle} */
export async function handle({ request, resolve }) { export async function handle({ request, resolve }) {
if (process.env['PGHOST']) {
if (process.env.PGHOST) {
// this is a convenient time to clear out expired sessions // this is a convenient time to clear out expired sessions
query('delete from sessions where expiry < now()'); query('delete from sessions where expiry < now()');

Loading…
Cancel
Save