Skip to content

Commit

Permalink
Fixing creation issues wqith connections
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdsupremacist committed May 11, 2020
1 parent a439ed6 commit 625c5c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ extension ConnectionProtocol {
context: MutableContext,
eventLoop: EventLoopGroup) throws -> EventLoopFuture<Any?> {

let first = try arguments["first"]?.intValue(converting: true)
let after = try arguments["after"]?.stringValue(converting: true)
let last = try arguments["last"]?.intValue(converting: true)
let before = try arguments["before"]?.stringValue(converting: true)
let first = try Optional<Int>.create(from: arguments["first"] ?? .null)
let after = try Optional<String>.create(from: arguments["after"] ?? .null)
let last = try Optional<Int>.create(from: arguments["last"] ?? .null)
let before = try Optional<String>.create(from: arguments["before"] ?? .null)

let connection = ConnectionWrapper(connection: self,
eventLoop: eventLoop,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ extension ContextBasedConnection {
context: MutableContext,
eventLoop: EventLoopGroup) throws -> EventLoopFuture<Any?> {

let first = try arguments["first"]?.intValue(converting: true)
let after = try arguments["after"]?.stringValue(converting: true)
let last = try arguments["last"]?.intValue(converting: true)
let before = try arguments["before"]?.stringValue(converting: true)
let first = try Optional<Int>.create(from: arguments["first"] ?? .null)
let after = try Optional<String>.create(from: arguments["after"] ?? .null)
let last = try Optional<Int>.create(from: arguments["last"] ?? .null)
let before = try Optional<String>.create(from: arguments["before"] ?? .null)

let connection = ContextBasedConnectionWrapper(connection: self,
eventLoop: eventLoop,
Expand Down

0 comments on commit 625c5c9

Please sign in to comment.