msg not message

This commit is contained in:
SimonFJ20 2025-03-18 15:21:51 +01:00
parent 2306db2254
commit 690d030a14

View File

@ -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;