[−][src]Function proj17_iot_server::persistance::db::draw_credits_for_order
pub fn draw_credits_for_order(
order_id: &String,
credits: i32
) -> Result<(), String>
Decrements the credit field for orders row matching id
Arguments
order_id - id of the order to decrement
credits - i32 amount of credits to withdraw