mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-27 03:14:48 +02:00
Added timezone when reading from cache
This commit is contained in:
@@ -376,6 +376,7 @@ export class ScheduleService {
|
||||
and(
|
||||
eq(scheduleCache.date, date.toISOString().split("T")[0]),
|
||||
eq(scheduleCache.channel, channelId),
|
||||
eq(scheduleCache.timezone, timeZone),
|
||||
),
|
||||
)
|
||||
.orderBy(scheduleCache.date);
|
||||
@@ -669,6 +670,10 @@ export class ScheduleService {
|
||||
channelId: string;
|
||||
awaitRebuild?: boolean;
|
||||
}): Promise<void> {
|
||||
console.log("🚨🚨🚨🚨🚨🚨🚨🚨 cleanAndRegenerateCache()");
|
||||
console.log("channelId:", channelId);
|
||||
console.log("startDate:", startDate);
|
||||
console.log("endDate:", endDate);
|
||||
// Get all time zones for the channel in the cache
|
||||
const timeZones = await this.usedTimeZones();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user