Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(admin): treat 204 as successful (#26)

hampus-fluxer9fdc3744432b
diff --git a/fluxer_admin/src/fluxer_admin/api/common.gleam b/fluxer_admin/src/fluxer_admin/api/common.gleam
index b4bfd7886..13a467470 100644
--- a/fluxer_admin/src/fluxer_admin/api/common.gleam
+++ b/fluxer_admin/src/fluxer_admin/api/common.gleam
@@ -104,6 +104,7 @@ pub fn admin_post_with_audit(
case httpc.send(req) {
Ok(resp) if resp.status == 200 -> Ok(Nil)
+ Ok(resp) if resp.status == 204 -> Ok(Nil)
Ok(resp) if resp.status == 401 -> Error(Unauthorized)
Ok(resp) if resp.status == 403 -> {
let message_decoder = {