PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Api } from '@api'
|
||||
import { IBookedEvent, ICalendarState, IEvents, IOperators } from 'model'
|
||||
import type { IBookedEvent, ICalendarState, IEvents, IOperators } from 'model'
|
||||
|
||||
import { serv_constants } from './Modules/serv_constants'
|
||||
import { tools } from './Modules/tools'
|
||||
@@ -217,7 +217,7 @@ export const useCalendarStore = defineStore('CalendarStore', {
|
||||
async CancelBookingEvent({ ideventbook, notify }: { ideventbook: string, notify: string }) {
|
||||
console.log('CALSTORE: CancelBookingEvent', ideventbook, notify)
|
||||
|
||||
return Api.SendReq('/booking/' + ideventbook + '/' + notify + '/' + process.env.APP_ID, 'DELETE', null)
|
||||
return Api.SendReq('/booking/' + ideventbook + '/' + notify + '/' + tools.getEnv('VITE_APP_ID'), 'DELETE', null)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.code === serv_constants.RIS_CODE_OK) {
|
||||
|
||||
Reference in New Issue
Block a user