orderiom-api-package
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "orderiom-api-package", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "this package will install all neccessary api calls for every orderiom restaurant", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -97,8 +97,8 @@ import axios from "axios"; | ||
getRestaurantIdBySlug({ commit }, restaurantSlug) { | ||
return axios.get('api/restaurant/restaurant-by-name', { | ||
return axios.get('api/restaurant/id', { | ||
params: { | ||
restaurantName: restaurantSlug, | ||
slug: restaurantSlug, | ||
} | ||
}).then((result) => { | ||
commit('setRestaurantId', result.data.data[0].restaurant_id) | ||
commit('setRestaurantId', result.data.data.id) | ||
}).catch((error) => { | ||
@@ -105,0 +105,0 @@ if (error.response) { |
89875