patch incorrect argument to sor

This commit is contained in:
creating2morrow 2023-12-10 03:18:50 -05:00
parent 1131eaa541
commit 344cd4e304
2 changed files with 6 additions and 2 deletions

View file

@ -299,7 +299,7 @@ pub async fn trigger_nasr(
let proxy = reqwest::Proxy::http(&host)?;
let client = reqwest::Client::builder().proxy(proxy).build();
match client?
.post(format!("http://{}/nasr/{}/{}", &customer, vendor, orid))
.post(format!("http://{}/market/nasr/{}/{}", &customer, vendor, orid))
.header("proof", jwp)
.send()
.await
@ -482,6 +482,10 @@ pub async fn transmit_ship_request(
}
}
// TODO: sor is injecting order id instead of base 32 address FIX IT!
/// Executes GET /order/retrieve/orid/signature returning the order information
///
/// from the vendor.

View file

@ -212,7 +212,7 @@ pub async fn trigger_nasr(
vendor: String,
_jwp: proof::PaymentProof,
) -> Custom<Json<models::Order>> {
let order: models::Order = order::d_trigger_ship_request(&orid, &vendor).await;
let order: models::Order = order::d_trigger_ship_request(&vendor, &orid).await;
if order.orid == utils::empty_string() {
return Custom(Status::BadRequest, Json(Default::default()));
}