If we make an invoice_request inactive */
| 6274 | |
| 6275 | /* If we make an invoice_request inactive */ |
| 6276 | static void invoice_request_status_update(struct db *db, |
| 6277 | const struct sha256 *invreq_id, |
| 6278 | enum offer_status oldstatus, |
| 6279 | enum offer_status newstatus) |
| 6280 | { |
| 6281 | struct db_stmt *stmt; |
| 6282 | |
| 6283 | stmt = db_prepare_v2(db, SQL("UPDATE invoicerequests" |
| 6284 | " SET status=?" |
| 6285 | " WHERE invreq_id = ?;")); |
| 6286 | db_bind_int(stmt, offer_status_in_db(newstatus)); |
| 6287 | db_bind_sha256(stmt, invreq_id); |
| 6288 | db_exec_prepared_v2(take(stmt)); |
| 6289 | } |
| 6290 | |
| 6291 | enum offer_status wallet_invoice_request_disable(struct wallet *w, |
| 6292 | const struct sha256 *invreq_id, |
no test coverage detected