Skip to content

Commit 61a4b56

Browse files
committed
Fix data type mismatch and add formatting
updateCommunicationTemplateAsAdmin.id now conforms to String.
1 parent b084a97 commit 61a4b56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/ATProtoKit/Networking/CoreAPI/UpdateCommunicationTemplate.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ extension ATProtoKit {
2020
/// - updatedBy: The decentralized identifier (DID) of the user who updated the communication template. Optional.
2121
/// - isDisabled: Indicates whether the communication template is disabled. Optional.
2222
/// - Returns: A `Result`, containing either an ``AdminCommunicationTemplateView`` if successful, or an `Error` if not.
23-
public func updateCommunicationTemplateAsAdmin(_ id: Int, name: String?, contentMarkdown: String?, subject: String?, updatedBy: String?, isDisabled: Bool?) async throws -> Result<AdminCommunicationTemplateView, Error> {
23+
public func updateCommunicationTemplateAsAdmin(_ id: String, name: String?, contentMarkdown: String?, subject: String?, updatedBy: String?,
24+
isDisabled: Bool?) async throws -> Result<AdminCommunicationTemplateView, Error> {
2425
guard let sessionURL = session.pdsURL,
2526
let requestURL = URL(string: "\(sessionURL)/xrpc/com.atproto.admin.updateCommunicationTemplate") else {
2627
return .failure(NSError(domain: "", code: -1, userInfo: [NSLocalizedDescriptionKey: "Invalid URL"]))

0 commit comments

Comments
 (0)