@feedmepos/mf-order-setting 0.0.63-prod → 0.0.65-prod

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.
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as Yu, ref as hu, resolveComponent as fu, createElementBlock as Je, openBlock as De, createElementVNode as ze, createVNode as Fe, toDisplayString as cu, unref as du, createBlock as et, computed as qu, watch as rt, onMounted as at, createCommentVNode as wu, withCtx as Eu, createTextVNode as nt, Fragment as it, renderList as st, renderSlot as ot } from "vue";
2
- import { e as Ie, c as Ue } from "./app-BMblFPtQ.js";
2
+ import { e as Ie, c as Ue } from "./app-BiYcG4Lz.js";
3
3
  import { useDialog as lt, useSnackbar as ct } from "@feedmepos/ui-library";
4
4
  import { useI18n as Au, useCoreStore as ut } from "@feedmepos/mf-common";
5
5
  import { defineStore as ft } from "pinia";
6
- import { r as bu, g as ne, w as $u, j as Uu, S as Wu } from "./menu.dto-BdFq_BB_.js";
6
+ import { r as bu, g as ne, w as $u, j as Uu, S as Wu } from "./menu.dto-D4nJ4rBU.js";
7
7
  const dt = /* @__PURE__ */ Yu({
8
8
  __name: "OfflinePaymentTypeDialogContent",
9
9
  props: {
@@ -1,4 +1,4 @@
1
- import { g as i, v as _, S as C, r as g } from "./menu.dto-BdFq_BB_.js";
1
+ import { g as i, v as _, S as C, r as g } from "./menu.dto-D4nJ4rBU.js";
2
2
  async function R() {
3
3
  const r = await g().get("/order-settings");
4
4
  return i(r);
@@ -1,4 +1,4 @@
1
- import { e as GE, n as VE, c as ae } from "./app-BMblFPtQ.js";
1
+ import { e as GE, n as VE, c as ae } from "./app-BiYcG4Lz.js";
2
2
  import { useCoreStore as Yo } from "@feedmepos/mf-common";
3
3
  function HE(o, c) {
4
4
  return function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-order-setting",
3
- "version": "0.0.63-prod",
3
+ "version": "0.0.65-prod",
4
4
  "type": "module",
5
5
  "module": "./dist/app.js",
6
6
  "license": "UNLICENSED",
@@ -920,24 +920,28 @@ async function updateFeedmeExpressSetting() {
920
920
 
921
921
  async function updateInHouseSetting() {
922
922
  sideSheetIntegrated.value = false
923
- await restaurantStore.updateInhouseDelivery(currentRestaurant.value?._id ?? '', inHouseDoc.value)
924
- const res = (await readRestaurants())?.find((res) => res._id === currentRestaurant.value?._id)
925
- if (res) {
926
- await changeRestaurant(res)
927
- }
923
+ await startAsyncCallWithErr(async () => {
924
+ await restaurantStore.updateInhouseDelivery(currentRestaurant.value?._id ?? '', inHouseDoc.value)
925
+ const res = (await readRestaurants())?.find((res) => res._id === currentRestaurant.value?._id)
926
+ if (res) {
927
+ await changeRestaurant(res)
928
+ }
929
+ })
928
930
  showSuccess(t('order.DeliverySettingUpdated'))
929
931
  }
930
932
 
931
933
  async function updateExternalDeliverySetting() {
932
934
  sideSheetIntegrated.value = false
933
- await restaurantStore.updateExternalDelivery(
934
- currentRestaurant.value?._id ?? '',
935
- externalDoc.value
936
- )
937
- const res = (await readRestaurants())?.find((res) => res._id === currentRestaurant.value?._id)
938
- if (res) {
939
- await changeRestaurant(res)
940
- }
935
+ await startAsyncCallWithErr(async () => {
936
+ await restaurantStore.updateExternalDelivery(
937
+ currentRestaurant.value?._id ?? '',
938
+ externalDoc.value
939
+ )
940
+ const res = (await readRestaurants())?.find((res) => res._id === currentRestaurant.value?._id)
941
+ if (res) {
942
+ await changeRestaurant(res)
943
+ }
944
+ })
941
945
  showSuccess(t('order.DeliverySettingUpdated'))
942
946
  }
943
947