mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 18:33:01 +00:00
update issue assignee full implementation
This commit is contained in:
@@ -41,7 +41,10 @@ export async function deleteIssue(id: number) {
|
||||
return await db.delete(Issue).where(eq(Issue.id, id));
|
||||
}
|
||||
|
||||
export async function updateIssue(id: number, updates: { title?: string; description?: string }) {
|
||||
export async function updateIssue(
|
||||
id: number,
|
||||
updates: { title?: string; description?: string; assigneeId?: number | null },
|
||||
) {
|
||||
return await db.update(Issue).set(updates).where(eq(Issue.id, id)).returning();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user