orderiom-api-package 0.4.27 → 0.4.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/common.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.4.27",
3
+ "version": "0.4.28",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/src/common.js CHANGED
@@ -117,8 +117,8 @@ axios.interceptors.request.use(config => {
117
117
 
118
118
  const key = config.method === 'get' ? 'params' : 'data';
119
119
  const data = config[key] || {};
120
- const restaurantIdEnv = restaurantIdEnv();
121
- if(restaurantIdEnv && !data.restaurantId) data.restaurantId = restaurantIdEnv;
120
+ const idFromEnv = restaurantIdEnv();
121
+ if(idFromEnv && !data.restaurantId) data.restaurantId = idFromEnv;
122
122
  config[key] = data;
123
123
 
124
124
  return config;