If we make an invoice_request inactive */
| 6334 | |
| 6335 | /* If we make an invoice_request inactive */ |
| 6336 | static void invoice_request_status_update(struct db *db, |
| 6337 | const struct sha256 *invreq_id, |
| 6338 | enum offer_status oldstatus, |
| 6339 | enum offer_status newstatus) |
| 6340 | { |
| 6341 | struct db_stmt *stmt; |
| 6342 | |
| 6343 | stmt = db_prepare_v2(db, SQL("UPDATE invoicerequests" |
| 6344 | " SET status=?" |
| 6345 | " WHERE invreq_id = ?;")); |
| 6346 | db_bind_int(stmt, offer_status_in_db(newstatus)); |
| 6347 | db_bind_sha256(stmt, invreq_id); |
| 6348 | db_exec_prepared_v2(take(stmt)); |
| 6349 | } |
| 6350 | |
| 6351 | enum offer_status wallet_invoice_request_disable(struct wallet *w, |
| 6352 | const struct sha256 *invreq_id, |
no test coverage detected