mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
remove rule order from edit event (since this is awkward in isolation)
This commit is contained in:
1 parent
65c821e394
commit
7e294d77d7
2 files changed
-5
No files matched your search
-3
@@ -9,7 +9,6 @@ pub struct UpdateTwitchEventRuleBuilder {
|
||||
pub token: String,
|
||||
pub event_match_predicate: String,
|
||||
pub event_response: String,
|
||||
pub user_specified_rule_order: u32,
|
||||
pub rule_is_disabled: bool,
|
||||
pub ip_address_update: String,
|
||||
}
|
||||
@@ -24,7 +23,6 @@ UPDATE twitch_event_rules
|
||||
SET
|
||||
event_match_predicate = ?,
|
||||
event_response = ?,
|
||||
user_specified_rule_order = ?,
|
||||
rule_is_disabled = ?,
|
||||
ip_address_last_update = ?
|
||||
WHERE
|
||||
@@ -34,7 +32,6 @@ LIMIT 1
|
||||
"#,
|
||||
&self.event_match_predicate,
|
||||
&self.event_response,
|
||||
&self.user_specified_rule_order,
|
||||
&self.rule_is_disabled,
|
||||
&self.ip_address_update,
|
||||
&self.token,
|
||||
|
||||
-2
@@ -35,7 +35,6 @@ pub struct EditTwitchEventRulePathInfo {
|
||||
pub struct EditTwitchEventRuleRequest {
|
||||
pub event_match_predicate: Option<EventMatchPredicate>,
|
||||
pub event_response: Option<EventResponse>,
|
||||
pub user_specified_rule_order: u32,
|
||||
pub rule_is_disabled: bool,
|
||||
}
|
||||
|
||||
@@ -147,7 +146,6 @@ pub async fn edit_twitch_event_rule_handler(
|
||||
token: path.token.clone(),
|
||||
event_match_predicate,
|
||||
event_response,
|
||||
user_specified_rule_order: request.user_specified_rule_order,
|
||||
rule_is_disabled: request.rule_is_disabled,
|
||||
ip_address_update: creator_ip_address,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user