Răsfoiți Sursa

Tinyify. Fix one environment variable.

Lee Morgan 6 ani în urmă
părinte
comite
ee13e64b83
2 a modificat fișierele cu 1 adăugiri și 3134 ștergeri
  1. 1 1
      controllers/otherData.js
  2. 0 3133
      views/dashboardPage/bundle.js

+ 1 - 1
controllers/otherData.js

@@ -54,7 +54,7 @@ module.exports = {
 
     //GET - Redirects user to Square OAuth page
     squareRedirect: function(req, res){
-        return res.redirect(`https://connect.squareupsandbox.com/oauth2/authorize?client_id=${process.env.SUBLINE_SQUARE_APPID}&scope=INVENTORY_READ+ITEMS_READ+MERCHANT_PROFILE_READ+ORDERS_READ+PAYMENTS_READ`);
+        return res.redirect(`${process.env.SQUARE_ADDRESS}/oauth2/authorize?client_id=${process.env.SUBLINE_SQUARE_APPID}&scope=INVENTORY_READ+ITEMS_READ+MERCHANT_PROFILE_READ+ORDERS_READ+PAYMENTS_READ`);
     },
 
     //GET - Get access token from clover and  redirect to merchant creation

Fișier diff suprimat deoarece este prea mare
+ 0 - 3133
views/dashboardPage/bundle.js


Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff