File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Sources/ParseServerSwift/Models Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ extension HookFunction {
59
59
if error. containedIn ( [ . webhookError] ) && method == . POST {
60
60
// swiftlint:disable:next line_length
61
61
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,
63
64
name: name,
64
65
parseServerURLStrings: parseServerURLStrings)
65
66
} else {
Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ extension HookTrigger {
69
69
if error. containedIn ( [ . webhookError] ) && method == . POST {
70
70
// swiftlint:disable:next line_length
71
71
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,
73
74
className: className,
74
75
triggerName: triggerName,
75
76
parseServerURLStrings: parseServerURLStrings)
You can’t perform that action at this time.
0 commit comments