mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 11:39:22 +00:00
patch incorrect argument to sor
This commit is contained in:
parent
1131eaa541
commit
344cd4e304
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue