From cc0e83968363fa97d7d2df35f54fe55746d53ad8 Mon Sep 17 00:00:00 2001 From: CelestialCrafter Date: Sat, 21 Oct 2023 16:29:31 -0500 Subject: [PATCH] update env var names --- src/hooks.server.js | 6 +++--- src/lib/components/Graph.svelte | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hooks.server.js b/src/hooks.server.js index 73e35ca..28a68f8 100755 --- a/src/hooks.server.js +++ b/src/hooks.server.js @@ -1,5 +1,5 @@ import { DB_URI, JWT_SECRET } from '$env/static/private'; -import { PUBLIC_ALGORITHM_SERVER_BASE_URL } from '$env/static/public'; +import { PUBLIC_REDIS_URI, PUBLIC_ALGORITHM_SERVER_URI } from '$env/static/public'; import { Bot } from '$lib/models.server'; import { toReadableAmount } from '$lib/blockchain.server'; @@ -12,7 +12,7 @@ import executeTransactions from './blockchain/trading'; import addWorths, { defaultBaseToken } from './blockchain/worth'; const connection = connect(DB_URI); -const redis = createClient(); +const redis = createClient({ url: PUBLIC_REDIS_URI }); // Algorithm Check Job const job = schedule.scheduleJob('*/5 * * * *', async () => { @@ -20,7 +20,7 @@ const job = schedule.scheduleJob('*/5 * * * *', async () => { try { const token = jwt.sign({ event: 'auth' }, JWT_SECRET, { algorithm: 'HS256' }); - await fetch(`${PUBLIC_ALGORITHM_SERVER_BASE_URL}/internal_checker`, { + await fetch(`${PUBLIC_ALGORITHM_SERVER_URI}/internal_checker`, { headers: { Authorization: token } diff --git a/src/lib/components/Graph.svelte b/src/lib/components/Graph.svelte index 1de53cd..d8224ca 100644 --- a/src/lib/components/Graph.svelte +++ b/src/lib/components/Graph.svelte @@ -1,12 +1,12 @@