Skip to content

Commit

Permalink
feat: fix bump related bug
Browse files Browse the repository at this point in the history
love breaking changes in minor version changes
  • Loading branch information
Gobot1234 committed Oct 11, 2024
1 parent 395adf5 commit 788ba26
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions apps/anvil/src/sign-in/sign-in.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,18 +270,20 @@ export class SignInService implements OnModuleInit {
false,
),
),
selectable: e.op(
// if they're a rep they can sign in off shift to use the machines they want even if the reps aren't trained
// ideally first comparison should be `__source__ is users::Rep`
selectable: e.assert_exists(
e.op(
e.op(e.op(user.__type__.name, "=", "users::Rep"), "or", e.op(training.rep.id, "in", rep_training.id)),
"and",
e.op("exists", training["@in_person_created_at"]),
// if they're a rep they can sign in off shift to use the machines they want even if the reps aren't trained
// ideally first comparison should be `__source__ is users::Rep`
e.op(
e.op(e.op(user.__type__.name, "=", "users::Rep"), "or", e.op(training.rep.id, "in", rep_training.id)),
"and",
e.op("exists", training["@in_person_created_at"]),
),
"if",
training.in_person,
"else",
true,
),
"if",
training.in_person,
"else",
true,
),
enabled: false,
icon_url: true,
Expand Down

0 comments on commit 788ba26

Please sign in to comment.