diff --git a/Sources/Deploy/main.swift b/Sources/Deploy/main.swift index 76dbbe0..ed96296 100644 --- a/Sources/Deploy/main.swift +++ b/Sources/Deploy/main.swift @@ -41,7 +41,7 @@ extension DatabaseConfiguration { self.password = nil self.port = UInt16(5984) } - self.options = [String : AnyObject]() + self.options = [String : Any]() } } diff --git a/Sources/TodoList/TodoList.swift b/Sources/TodoList/TodoList.swift index 7bcadbd..61819d7 100644 --- a/Sources/TodoList/TodoList.swift +++ b/Sources/TodoList/TodoList.swift @@ -66,7 +66,7 @@ public class TodoList: TodoListAPI { let userParameter = withUserID ?? "default" database.queryByView("user_todos", ofDesign: designName, - usingParameters: [.keys([userParameter as! AnyObject])]) { + usingParameters: [.keys([userParameter as Any])]) { document, error in if let document = document , error == nil { @@ -92,7 +92,7 @@ public class TodoList: TodoListAPI { database.queryByView("user_todos", ofDesign: designName, usingParameters: [.descending(true), .includeDocs(true), - .keys([userParameter as! AnyObject])]) { + .keys([userParameter as Any])]) { document, error in guard let document = document else { @@ -197,7 +197,7 @@ public class TodoList: TodoListAPI { database.queryByView("user_todos", ofDesign: designName, usingParameters: [.descending(true), .includeDocs(true), - .keys([userParameter as! AnyObject])]) { + .keys([userParameter as Any])]) { document, error in if let document = document , error == nil {