⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { and, eq } from "drizzle-orm";
import { HTTPException } from "hono/http-exception";
import db from "../../database";
import { integrationTable } from "../../database/schema";
async function deleteGithubIntegration(projectId: string) {
const existingIntegration = await db.query.integrationTable.findFirst({
where: and(
eq(integrationTable.projectId, projectId),
eq(integrationTable.type, "github"),
),
});
if (!existingIntegration) {
throw new HTTPException(404, { message: "GitHub integration not found" });
}
await db
.delete(integrationTable)
.where(eq(integrationTable.id, existingIntegration.id));
return { success: true, message: "GitHub integration deleted" };
}
export default deleteGithubIntegration;