From 4051c04c91c616e68c7bf3cace57e9c073ed92c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Mon, 6 Apr 2020 09:42:19 +0200 Subject: [PATCH] token -> gatewayTokeng --- api/message.js | 4 ++-- api/virtualLottery.js | 2 +- config/defaults/lottery.js | 2 +- config/env/lottery.config.example.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/message.js b/api/message.js index d4037de..dc41ae0 100644 --- a/api/message.js +++ b/api/message.js @@ -41,7 +41,7 @@ async function sendMessageTooLate(winnerObject) { async function sendMessageToUser(phoneNumber, message) { request.post( { - url: `https://gatewayapi.com/rest/mtsms?token=${config.token}`, + url: `https://gatewayapi.com/rest/mtsms?token=${config.gatewayToken}`, json: true, body: { sender: "Vinlottis", @@ -62,7 +62,7 @@ async function sendUpdate(winners) { } request.post( { - url: `https://gatewayapi.com/rest/mtsms?token=${config.token}`, + url: `https://gatewayapi.com/rest/mtsms?token=${config.gatewayToken}`, json: true, body: { sender: "Vinlottis", diff --git a/api/virtualLottery.js b/api/virtualLottery.js index 966be95..50525b2 100644 --- a/api/virtualLottery.js +++ b/api/virtualLottery.js @@ -165,7 +165,7 @@ const sha512 = function(password, salt) { }; router.route("/finish").get(mustBeAuthenticated, async (req, res) => { - if (!config.token) { + if (!config.gatewayToken) { res.json(false); return; } diff --git a/config/defaults/lottery.js b/config/defaults/lottery.js index f0a53f7..f341975 100644 --- a/config/defaults/lottery.js +++ b/config/defaults/lottery.js @@ -12,6 +12,6 @@ try { date: 5, hours: 15, apiUrl: "https://lottis.vin", - token: undefined + gatewayToken: undefined }; } diff --git a/config/env/lottery.config.example.js b/config/env/lottery.config.example.js index 0243d7c..594b3d7 100644 --- a/config/env/lottery.config.example.js +++ b/config/env/lottery.config.example.js @@ -6,5 +6,5 @@ module.exports = { date: 5, hours: 15, apiUrl: undefined, - token: undefined + gatewayToken: undefined };