diff --git a/Library/Database/Profile+Transferable.swift b/Library/Database/Profile+Transferable.swift index 0bc8b4c..b308638 100644 --- a/Library/Database/Profile+Transferable.swift +++ b/Library/Database/Profile+Transferable.swift @@ -7,7 +7,12 @@ public extension Profile { func toContent() throws -> LibboxProfileContent { let content = LibboxProfileContent() content.name = name - content.type = Int32(type.rawValue) + switch type { + case .local, .icloud: + content.type = LibboxProfileTypeLocal + case .remote: + content.type = LibboxProfileTypeRemote + } content.config = try read() if type == .remote { content.remotePath = remoteURL!