forked from shadowfacts/Tusker
Fix V2 filter actions not saving
This commit is contained in:
parent
75e9c9f986
commit
8ad48784d9
|
@ -41,7 +41,7 @@ public struct FilterV2: Decodable {
|
|||
return Request(method: .put, path: "/api/v2/filters/\(filterID)", body: ParametersBody([
|
||||
"title" => title,
|
||||
"expires_in" => expiresIn,
|
||||
"action" => action.rawValue,
|
||||
"filter_action" => action.rawValue,
|
||||
] + "context" => context.contextStrings + keywordsParams))
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ public struct FilterV2: Decodable {
|
|||
return Request(method: .post, path: "/api/v2/filters", body: ParametersBody([
|
||||
"title" => title,
|
||||
"expires_in" => expiresIn,
|
||||
"action" => action.rawValue,
|
||||
"filter_action" => action.rawValue,
|
||||
] + "context" => context.contextStrings + keywordsParams))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue