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.

369 B
Raw Blame
import { eq } from "drizzle-orm";
import db, { schema } from "../database";

export async function listWorkspaceProjectIds(
  workspaceId: string,
): Promise<string[]> {
  const rows = await db
    .select({ id: schema.projectTable.id })
    .from(schema.projectTable)
    .where(eq(schema.projectTable.workspaceId, workspaceId));
  return rows.map((row) => row.id);
}