fix: slot check (#14917)

This commit is contained in:
sean-brydon authored and GitHub committed 2024-05-07 12:43:10 +00:00
1 parent 3f4d9962a7
commit cfcf5b168c
1 file changed
+1 -1
@@ -682,7 +682,7 @@ export async function getAvailableSlots({ input, ctx }: GetScheduleOptions): Pro
loggerWithEventDetails.debug(`Available slots: ${JSON.stringify(computedAvailableSlots)}`);
// We only want to run this on single targeted events and not dynamic
if (!computedAvailableSlots.slots && input.usernameList?.length === 1) {
if (!Object.keys(computedAvailableSlots).length && input.usernameList?.length === 1) {
try {
await handleNotificationWhenNoSlots({
eventDetails: {