import { findOneWithDecryption } from "@open-mercato/shared/lib/encryption/find";
import { StaffTeamMember } from "../data/entities.js";
async function getStaffMemberByUserId(em, userId, tenantId, organizationId) {
  return findOneWithDecryption(
    em,
    StaffTeamMember,
    { userId, deletedAt: null },
    void 0,
    { tenantId, organizationId }
  );
}
export {
  getStaffMemberByUserId
};
//# sourceMappingURL=staffMemberResolver.js.map
