Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

438 B
Raw Blame
import db from "../database";
import { publishEvent } from "../events";
import { listAccessibleProjectIds } from "./list-accessible-project-ids";

export async function publishMemberProjects(
  workspaceId: string,
  userId: string,
): Promise<void> {
  const projectIds = await listAccessibleProjectIds(db, workspaceId, userId);
  await publishEvent("project_members.updated", {
    workspaceId,
    projectIds: [...projectIds],
  });
}