route + query updates for "assignees" update

This commit is contained in:
Oliver Bryan
2026-01-16 22:44:15 +00:00
parent 6ffb05eb3b
commit 2842d21ed5
4 changed files with 86 additions and 28 deletions

View File

@@ -7,7 +7,7 @@ export default async function issueCreate(req: AuthedRequest) {
const parsed = await parseJsonBody(req, IssueCreateRequestSchema);
if ("error" in parsed) return parsed.error;
const { projectId, title, description = "", status, assigneeId, sprintId } = parsed.data;
const { projectId, title, description = "", status, assigneeIds, sprintId } = parsed.data;
const project = await getProjectByID(projectId);
if (!project) {
@@ -20,7 +20,7 @@ export default async function issueCreate(req: AuthedRequest) {
description,
req.userId,
sprintId ?? undefined,
assigneeId ?? undefined,
assigneeIds,
status,
);