Fix V2 filter actions not saving

This commit is contained in:
Shadowfacts 2022-12-03 23:06:53 -05:00
parent 75e9c9f986
commit 8ad48784d9
1 changed files with 2 additions and 2 deletions

View File

@ -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))
}