From 73ca312f43b7e3a879f05acd765d2edcfa874eeb 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 {