Skip to content

Commit

Permalink
Fix data type mismatch and add formatting
Browse files Browse the repository at this point in the history
updateCommunicationTemplateAsAdmin.id now conforms to String.
  • Loading branch information
MasterJ93 committed Mar 3, 2024
1 parent b084a97 commit 61a4b56
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ extension ATProtoKit {
/// - updatedBy: The decentralized identifier (DID) of the user who updated the communication template. Optional.
/// - isDisabled: Indicates whether the communication template is disabled. Optional.
/// - Returns: A `Result`, containing either an ``AdminCommunicationTemplateView`` if successful, or an `Error` if not.
public func updateCommunicationTemplateAsAdmin(_ id: Int, name: String?, contentMarkdown: String?, subject: String?, updatedBy: String?, isDisabled: Bool?) async throws -> Result<AdminCommunicationTemplateView, Error> {
public func updateCommunicationTemplateAsAdmin(_ id: String, name: String?, contentMarkdown: String?, subject: String?, updatedBy: String?,
isDisabled: Bool?) async throws -> Result<AdminCommunicationTemplateView, Error> {
guard let sessionURL = session.pdsURL,
let requestURL = URL(string: "\(sessionURL)/xrpc/com.atproto.admin.updateCommunicationTemplate") else {
return .failure(NSError(domain: "", code: -1, userInfo: [NSLocalizedDescriptionKey: "Invalid URL"]))
Expand Down

0 comments on commit 61a4b56

Please sign in to comment.