mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-28 08:44:06 +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) {
|
if (user.balance_dkk_cent < total_dkk_cent) {
|
||||||
RESPOND_JSON(
|
RESPOND_JSON(ctx, 200, "{\"ok\":false,\"msg\":\"insufficient funds\"}");
|
||||||
ctx, 200, "{\"ok\":false,\"message\":\"insufficient funds\"}");
|
|
||||||
goto l0_return;
|
goto l0_return;
|
||||||
}
|
}
|
||||||
user.balance_dkk_cent -= total_dkk_cent;
|
user.balance_dkk_cent -= total_dkk_cent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user