feat: Implements maxLeadThreshold (#17643)
* feat: Implements maxLeadThreshold which puts a maximum to the amount of lead a given host is allowed to be ahead * Refactor getLuckyUser + implement in handleNewBooking + move logic to repo * Decoupled @prisma from findQualifiedHosts * Fix deep type error * Add maxLeadThreshold to builder.ts * Removed a console.log :O + fix handleChildrenEventTypes input * Add distribution UI to enable balanced distribution/maximize availability * 0-1-2 instead of 0-1-2-3 (3 bookings instead of 4)
This commit is contained in:
1 parent
c6aa57177a
commit
f76696032e
26 files changed
+626
-123
No files matched your search
@@ -124,6 +124,7 @@ export const useEventTypeForm = ({
|
||||
schedulerName: eventType.aiPhoneCallConfig?.schedulerName,
|
||||
},
|
||||
isRRWeightsEnabled: eventType.isRRWeightsEnabled,
|
||||
maxLeadThreshold: eventType.maxLeadThreshold,
|
||||
};
|
||||
}, [eventType, periodDates]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user