token -> gatewayTokeng
This commit is contained in:
		| @@ -41,7 +41,7 @@ async function sendMessageTooLate(winnerObject) { | |||||||
| async function sendMessageToUser(phoneNumber, message) { | async function sendMessageToUser(phoneNumber, message) { | ||||||
|   request.post( |   request.post( | ||||||
|     { |     { | ||||||
|       url: `https://gatewayapi.com/rest/mtsms?token=${config.token}`, |       url: `https://gatewayapi.com/rest/mtsms?token=${config.gatewayToken}`, | ||||||
|       json: true, |       json: true, | ||||||
|       body: { |       body: { | ||||||
|         sender: "Vinlottis", |         sender: "Vinlottis", | ||||||
| @@ -62,7 +62,7 @@ async function sendUpdate(winners) { | |||||||
|   } |   } | ||||||
|   request.post( |   request.post( | ||||||
|     { |     { | ||||||
|       url: `https://gatewayapi.com/rest/mtsms?token=${config.token}`, |       url: `https://gatewayapi.com/rest/mtsms?token=${config.gatewayToken}`, | ||||||
|       json: true, |       json: true, | ||||||
|       body: { |       body: { | ||||||
|         sender: "Vinlottis", |         sender: "Vinlottis", | ||||||
|   | |||||||
| @@ -165,7 +165,7 @@ const sha512 = function(password, salt) { | |||||||
| }; | }; | ||||||
|  |  | ||||||
| router.route("/finish").get(mustBeAuthenticated, async (req, res) => { | router.route("/finish").get(mustBeAuthenticated, async (req, res) => { | ||||||
|   if (!config.token) { |   if (!config.gatewayToken) { | ||||||
|     res.json(false); |     res.json(false); | ||||||
|     return; |     return; | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -12,6 +12,6 @@ try { | |||||||
|     date: 5, |     date: 5, | ||||||
|     hours: 15, |     hours: 15, | ||||||
|     apiUrl: "https://lottis.vin", |     apiUrl: "https://lottis.vin", | ||||||
|     token: undefined |     gatewayToken: undefined | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								config/env/lottery.config.example.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								config/env/lottery.config.example.js
									
									
									
									
										vendored
									
									
								
							| @@ -6,5 +6,5 @@ module.exports = { | |||||||
|   date: 5, |   date: 5, | ||||||
|   hours: 15, |   hours: 15, | ||||||
|   apiUrl: undefined, |   apiUrl: undefined, | ||||||
|   token: undefined |   gatewayToken: undefined | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user