orderiom-api-package 0.2.23 → 0.2.26

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.2.23",
3
+ "version": "0.2.26",
4
4
  "description": "this package will install all neccessary api calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -157,5 +157,6 @@
157
157
  "pattern_successfully_deleted": "Muster erfolgreich gelöscht.",
158
158
  "pattern_successfully_updated": "Muster erfolgreich aktualisiert.",
159
159
  "start_or_end_date_break_is_required": "Start oder Enddatum unterbrechung ist erforderlich.",
160
- "pattern_is_required": "Sie müssen Ihrem Muster Produkte hinzufügen."
160
+ "pattern_is_required": "Sie müssen Ihrem Muster Produkte hinzufügen.",
161
+ "newsletter_successfully_added": "Ihre E-Mail wurde erfolgreich hinzugefügt."
161
162
  }
@@ -157,5 +157,6 @@
157
157
  "pattern_successfully_deleted": "pattern successfully deleted.",
158
158
  "pattern_successfully_updated": "pattern successfully updated.",
159
159
  "start_or_end_date_break_is_required": "start or end date break is required.",
160
- "pattern_is_required": "you have to add products to your pattern."
160
+ "pattern_is_required": "you have to add products to your pattern.",
161
+ "newsletter_successfully_added": "Your email has been added successfuly."
161
162
  }
@@ -254,7 +254,7 @@ const actions = {
254
254
  if (!state.privateToken) {
255
255
  return;
256
256
  }
257
- axios
257
+ return axios
258
258
  .get("api/auth/user")
259
259
  .then(res => {
260
260
  const user = res.data.data;
@@ -831,7 +831,7 @@ const actions = {
831
831
  });
832
832
  },
833
833
  getOrderHistory({ commit }, data) {
834
- axios
834
+ return axios
835
835
  .get("api/order/history", { params: data })
836
836
  .then((res) => {
837
837
  commit('setorderList', res.data.data)