Skip to content

Commit

Permalink
fix(api): return code 200 instead of 204 for delete (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkdev98 committed Sep 3, 2024
1 parent 0f2115d commit 3304d93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/v1/routes/budgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const router = new Hono()

await deleteBudget({ budgetId })

return c.json(budget, 204)
return c.json(budget)
})

/** Generate sharable invitation link */
Expand Down
2 changes: 1 addition & 1 deletion apps/api/v1/routes/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const router = new Hono()

await deleteCategory({ categoryId })

return c.json(category, 204)
return c.json(category)
},
)

Expand Down

0 comments on commit 3304d93

Please sign in to comment.