From 8ad48784d9dd2a2feb72127c4cf2949073213bee Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 3 Dec 2022 23:06:53 -0500 Subject: [PATCH] Fix V2 filter actions not saving --- Pachyderm/Sources/Pachyderm/Model/FilterV2.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pachyderm/Sources/Pachyderm/Model/FilterV2.swift b/Pachyderm/Sources/Pachyderm/Model/FilterV2.swift index 83b83b9a..bf68c10a 100644 --- a/Pachyderm/Sources/Pachyderm/Model/FilterV2.swift +++ b/Pachyderm/Sources/Pachyderm/Model/FilterV2.swift @@ -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)) }