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.

445 B
Raw Blame
import { publishEvent } from "../events";
import { clearMemberProjectAccess } from "../project-access/clear-member-project-access";

export async function handleOwnerPromoted(workspaceId: string, userId: string) {
  await clearMemberProjectAccess(workspaceId, userId)
    .then(() => publishEvent("project_access.updated", { workspaceId, userId }))
    .catch((error) => {
      console.error("Project access cleanup failed:", error);
    });
}