From 344cd4e3045af056fe964f2d042816eb487c5e95 Mon Sep 17 00:00:00 2001 From: creating2morrow Date: Sun, 10 Dec 2023 03:18:50 -0500 Subject: [PATCH] patch incorrect argument to sor --- neveko-core/src/order.rs | 6 +++++- src/controller.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/neveko-core/src/order.rs b/neveko-core/src/order.rs index 1bba73a..c7dde33 100644 --- a/neveko-core/src/order.rs +++ b/neveko-core/src/order.rs @@ -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. diff --git a/src/controller.rs b/src/controller.rs index 3762d06..8d4deae 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -212,7 +212,7 @@ pub async fn trigger_nasr( vendor: String, _jwp: proof::PaymentProof, ) -> Custom> { - 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())); }