-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mobile config list programs fix (#883)
* verify the correct field fo the request * add carrier service to mobile-config-cli * verify response * cast start_ts and stop_ts to bigint from numeric for promotion list
- Loading branch information
1 parent
5ad4663
commit 04673f4
Showing
5 changed files
with
90 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use crate::{client, Msg, PrettyJson, Result}; | ||
|
||
use super::{ListIncentivePromotions, PathBufKeypair}; | ||
|
||
pub async fn list_incentive_promotions(args: ListIncentivePromotions) -> Result<Msg> { | ||
let mut client = client::CarrierClient::new(&args.config_host, &args.config_pubkey).await?; | ||
let list = client | ||
.list_incentive_promotions(&args.keypair.to_keypair()?) | ||
.await?; | ||
Msg::ok(list.pretty_json()?) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters