Skip to content

Commit 581f046

Browse files
committed
switch method to PUT
1 parent 43d9997 commit 581f046

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/ParseServerSwift/Models/HookFunction.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ extension HookFunction {
5959
if error.containedIn([.webhookError]) && method == .POST {
6060
// swiftlint:disable:next line_length
6161
configuration.logger.warning("Hook Function: \"\(String(describing: hookFunction))\"; warning: \(error); on server: \(parseServerURLString)")
62-
return try await Self.method(method, path,
62+
return try await Self.method(.PUT,
63+
path,
6364
name: name,
6465
parseServerURLStrings: parseServerURLStrings)
6566
} else {

Sources/ParseServerSwift/Models/HookTrigger.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ extension HookTrigger {
6969
if error.containedIn([.webhookError]) && method == .POST {
7070
// swiftlint:disable:next line_length
7171
configuration.logger.warning("Hook Trigger: \"\(String(describing: hookTrigger))\"; warning: \(error); on server: \(parseServerURLString)")
72-
return try await Self.method(method, path,
72+
return try await Self.method(.PUT,
73+
path,
7374
className: className,
7475
triggerName: triggerName,
7576
parseServerURLStrings: parseServerURLStrings)

0 commit comments

Comments
 (0)