Skip to content

Commit

Permalink
Change table tag to z (#171)
Browse files Browse the repository at this point in the history
* Update mostro core version

* Data table related to the event is in a z tag
  • Loading branch information
grunch authored Dec 20, 2023
1 parent 00b7abb commit 9d50081
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ uuid = { version = "1.3.0", features = [
"serde",
] }
reqwest = { version = "0.11", features = ["json"] }
mostro-core = "0.4.4"
mostro-core = "0.4.5"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
config = "0.13.3"
Expand Down
3 changes: 2 additions & 1 deletion src/app/admin_take_dispute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ pub async fn admin_take_dispute_action(
// We create a tag to show status of the dispute
let tags = vec![
("s".to_string(), "InProgress".to_string()),
("data_label".to_string(), "dispute".to_string()),
("y".to_string(), "mostrop2p".to_string()),
("z".to_string(), "dispute".to_string()),
];
// nip33 kind with dispute id as identifier
let event = new_event(my_keys, "", dispute_id.to_string(), tags)?;
Expand Down
3 changes: 2 additions & 1 deletion src/app/dispute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ pub async fn dispute_action(
// We create a tag to show status of the dispute
let tags = vec![
("s".to_string(), dispute.status.to_string()),
("data_label".to_string(), "dispute".to_string()),
("y".to_string(), "mostrop2p".to_string()),
("z".to_string(), "dispute".to_string()),
];
// nip33 kind with dispute id as identifier
let event = new_event(my_keys, "", dispute.id.to_string(), tags)?;
Expand Down
4 changes: 2 additions & 2 deletions src/nip33.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ pub fn order_to_tags(order: &Order) -> Vec<(String, String)> {
// premium (premium) - The premium
("premium".to_string(), order.premium.to_string()),
// Label to identify this is a Mostro's order
("l".to_string(), "MostroP2P".to_string()),
("y".to_string(), "mostrop2p".to_string()),
// Table name
("data_label".to_string(), "order".to_string()),
("z".to_string(), "order".to_string()),
];

tags
Expand Down

0 comments on commit 9d50081

Please sign in to comment.