diff --git a/src/http/serverInterface.ts b/src/http/serverInterface.ts index b74ba1b..ef1879b 100644 --- a/src/http/serverInterface.ts +++ b/src/http/serverInterface.ts @@ -51,6 +51,8 @@ function processSlot(result) { async function checkUserAlreadyBookedDay(bookingData: NewBooking): Promise { const ADMINS = ["Nwzxrf32Uee9i6hbTXSN2mWVzlC2", "lHxJifUfgHhJkECibwAudvf3MGp1", "lru8dL4JVWTycq0LHhHgyaWqX133"]; + // const BLOCKED_USERS = ["lHxJifUfgHhJkECibwAudvf3MGp1", "lru8dL4JVWTycq0LHhHgyaWqX133"]; + if (ADMINS.includes(bookingData.userId)) { return true; } @@ -68,7 +70,9 @@ async function checkUserAlreadyBookedDay(bookingData: NewBooking): Promise { if (submitBookingsError && submitBookingsError.includes("Looks like you have already booked today")) { Swal.fire({ title: `Oops!`, - html: `

Looks like you have already booked on this day. Please cancel your previous appointment to make a new one.

+ html: `

Looks like you have already booked twice on this day. Please cancel one of your previous appointments to make a new one.

`, icon: `info`, confirmButtonText: "Okay", diff --git a/src/version.json b/src/version.json index ef03da7..62dbf3d 100644 --- a/src/version.json +++ b/src/version.json @@ -1,3 +1,3 @@ { - "version": "1.13.1" + "version": "1.14.0" }