orderiom-api-package
Advanced tools
Comparing version 0.4.75 to 0.4.76
{ | ||
"name": "orderiom-api-package", | ||
"version": "0.4.75", | ||
"version": "0.4.76", | ||
"description": "This package will install all necessary API calls for every orderiom restaurant", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
import { commonErrorCallback, $http } from '../common'; | ||
import { commonErrorCallback, restaurantIdEnv, $http } from '../common'; | ||
@@ -81,2 +81,3 @@ const state = () => ({ | ||
getRestaurantInfo({ commit }, restaurantId) { | ||
if(!restaurantId) restaurantId = restaurantIdEnv(); | ||
const type = isNaN(Number(restaurantId)) ? 'slug' : 'id'; | ||
@@ -83,0 +84,0 @@ const params = type === 'slug' ? {slug: restaurantId} : {restaurantId}; |
127752
3197