mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
sprintId can now be updated on Issue
This commit is contained in:
@@ -45,7 +45,13 @@ export async function deleteIssue(id: number) {
|
||||
|
||||
export async function updateIssue(
|
||||
id: number,
|
||||
updates: { title?: string; description?: string; assigneeId?: number | null; status?: string },
|
||||
updates: {
|
||||
title?: string;
|
||||
description?: string;
|
||||
sprintId?: number | null;
|
||||
assigneeId?: number | null;
|
||||
status?: string;
|
||||
},
|
||||
) {
|
||||
return await db.update(Issue).set(updates).where(eq(Issue.id, id)).returning();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user