From a1339554896b4580eadb9ea08897d7282d45aa51 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 7 May 2023 14:55:38 -0400 Subject: [PATCH] Fix using removed dismiss notification API endpoint --- Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift b/Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift index e2789ec2..7294e0fc 100644 --- a/Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift +++ b/Packages/Pachyderm/Sources/Pachyderm/Model/Notification.swift @@ -30,9 +30,7 @@ public struct Notification: Decodable, Sendable { } public static func dismiss(id notificationID: String) -> Request { - return Request(method: .post, path: "/api/v1/notifications/dismiss", body: ParametersBody([ - "id" => notificationID - ])) + return Request(method: .post, path: "/api/v1/notifications/\(notificationID)/dismiss") } private enum CodingKeys: String, CodingKey {