mirror of https://github.com/vapor/docs.git
Fix makeNode method to reflect its implementation higher in the text
It makes the source to compile on top of that
This commit is contained in:
parent
648cff81cc
commit
cceecb65ad
|
|
@ -151,7 +151,7 @@ final class User: Model {
|
|||
name = try node.extract("name")
|
||||
}
|
||||
|
||||
func makeNode() throws -> Node {
|
||||
func makeNode(context: Context) throws -> Node {
|
||||
return try Node(node: [
|
||||
"id": id,
|
||||
"name": name
|
||||
|
|
|
|||
Loading…
Reference in New Issue