mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 18:33:01 +00:00
assignee implementation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { BunRequest } from "bun";
|
||||
import { getIssuesByProject, getProjectByBlob } from "../../db/queries";
|
||||
import { getIssuesWithAssigneeByProject, getProjectByBlob } from "../../db/queries";
|
||||
|
||||
export default async function issuesInProject(req: BunRequest<"/issues/:projectBlob">) {
|
||||
const { projectBlob } = req.params;
|
||||
@@ -8,7 +8,7 @@ export default async function issuesInProject(req: BunRequest<"/issues/:projectB
|
||||
if (!project) {
|
||||
return new Response(`project not found: provided ${projectBlob}`, { status: 404 });
|
||||
}
|
||||
const issues = await getIssuesByProject(project.id);
|
||||
const issues = await getIssuesWithAssigneeByProject(project.id);
|
||||
|
||||
return Response.json(issues);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user