token -> gatewayTokeng

This commit is contained in:
Kasper Rynning-Tønnesen
2020-04-06 09:42:19 +02:00
parent 55e1a00e67
commit 4051c04c91
4 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -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;
}

View File

@@ -12,6 +12,6 @@ try {
date: 5,
hours: 15,
apiUrl: "https://lottis.vin",
token: undefined
gatewayToken: undefined
};
}

View File

@@ -6,5 +6,5 @@ module.exports = {
date: 5,
hours: 15,
apiUrl: undefined,
token: undefined
gatewayToken: undefined
};