mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
msg not message
This commit is contained in:
parent
2306db2254
commit
690d030a14
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user