From 49001ab620f6dfad77fdf2c2ab4da12aa5a86f0c Mon Sep 17 00:00:00 2001 From: StormPacer Date: Tue, 24 Dec 2024 17:19:08 +0100 Subject: [PATCH] Add AUTH_KEY --- example.env | 3 ++- interactions/buttons/operation/confirm.js | 2 +- interactions/slash/operation/forceClose.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example.env b/example.env index 5b560f0..673843a 100644 --- a/example.env +++ b/example.env @@ -6,4 +6,5 @@ DB_USER=postgres DB_PASS=postgrespw DB_HOST=db DB_PORT=5432 -DB_NAME=postgres \ No newline at end of file +DB_NAME=postgres +AUTH_KEY=changeme \ No newline at end of file diff --git a/interactions/buttons/operation/confirm.js b/interactions/buttons/operation/confirm.js index 3117b65..1fe0bc3 100644 --- a/interactions/buttons/operation/confirm.js +++ b/interactions/buttons/operation/confirm.js @@ -65,7 +65,7 @@ module.exports = { await fetch(`${process.env.API_URL}/transcript`, { method: "POST", headers: { - Authorization: process.env.API_KEY + Authorization: process.env.AUTH_KEY }, body: form }); diff --git a/interactions/slash/operation/forceClose.js b/interactions/slash/operation/forceClose.js index b021863..57a8f8f 100644 --- a/interactions/slash/operation/forceClose.js +++ b/interactions/slash/operation/forceClose.js @@ -60,7 +60,7 @@ module.exports = { await fetch(`${process.env.API_URL}/transcript`, { method: "POST", headers: { - Authorization: process.env.API_KEY + Authorization: process.env.AUTH_KEY }, body: form });