From 690d030a14bffcb189d0c25454ed80cc7807b194 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Tue, 18 Mar 2025 15:21:51 +0100 Subject: [PATCH] msg not message --- backend/src/controllers/carts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/controllers/carts.c b/backend/src/controllers/carts.c index 7ca6dad..a1ea7d5 100644 --- a/backend/src/controllers/carts.c +++ b/backend/src/controllers/carts.c @@ -56,8 +56,7 @@ void route_post_carts_purchase(HttpCtx* ctx) } if (user.balance_dkk_cent < total_dkk_cent) { - RESPOND_JSON( - ctx, 200, "{\"ok\":false,\"message\":\"insufficient funds\"}"); + RESPOND_JSON(ctx, 200, "{\"ok\":false,\"msg\":\"insufficient funds\"}"); goto l0_return; } user.balance_dkk_cent -= total_dkk_cent;