@cfxlabsinc/b2b-services
    Preparing search index...

    Memberships of ORGANIZATION workspaces: the dashboard users who sign in as that organization. Read them through OrganizationDashboardWorkspaceAdminService.

    Index
    instance: (...args: []) => OrganizationDashboardMembershipAdminService = ...

    The process service, on the shared database.

    • Adds userId to the workspace's members, reviving their removed membership.

      Parameters

      • __namedParameters: {
            tx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>;
            userId: string;
            workspaceId: string;
        }

      Returns Promise<
          | {
              ok: true;
              value: {
                  createdAt: Date;
                  status: "ACTIVE"
                  | "DELETED"
                  | "DISABLED";
                  userId: string;
              };
          }
          | { error: ServiceError; ok: false },
      >