def matches

cswap-bend-cli@0.1.0.0 · ustore.bend:104

import cswap-bend-cli@0.1.0.0/ustore.bend as Ustore
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

104def matches(+row: Json.Json, +id: Id) -> Bool:
105  match id:
106    case Id{slot, email, org}:
107      String.eq(Maybe.default(&2, String, Json.as_string(jv("email", row)), "\u{1}"), email)
108        && String.eq(Maybe.default(&2, String, Json.as_string(Maybe.default(&2, Json.Json, Json.get("organizationUuid", row), Json.JStr{""})), "\u{1}"), org)

Uses (10)

Used by (1)