We weren't writing a 200 status code post-delete because Gitlab returns
a 204 (empty but successful) by default. I updated this logic to change
that and also to refresh the tree.

The collapsed state of the tree will be wiped out if you delete a
bottom-level discussion but that's okay for now, not a high priority
right now.
This commit is contained in:
Harrison (Harry) Cramer
2023-08-14 23:16:18 -04:00
committed by GitHub
parent 648e7a298b
commit d9a744300e
2 changed files with 14 additions and 4 deletions

View File

@@ -88,9 +88,9 @@ func DeleteComment(w http.ResponseWriter, r *http.Request) {
return
}
w.WriteHeader(res.StatusCode)
/* TODO: Check status code */
w.WriteHeader(http.StatusOK)
response := SuccessResponse{
Message: "Comment deleted succesfully",
Status: http.StatusOK,