Skip to content

Commit

Permalink
Fixed linux issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesspittman committed Sep 22, 2016
1 parent 5aecfd7 commit ea5d30c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/Deploy/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extension DatabaseConfiguration {
self.password = nil
self.port = UInt16(5984)
}
self.options = [String : AnyObject]()
self.options = [String : Any]()
}
}

Expand Down
6 changes: 3 additions & 3 deletions Sources/TodoList/TodoList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ea5d30c

Please sign in to comment.