Skip to main content
function preferLocation(locationId, opts?): RuleEntry;
Prefer assigning to shifts at a specific location. Requires appliesTo.

Parameters

locationId
string
required

Returns

RuleEntry

Example

preferLocation("terrace", { appliesTo: "alice" })