mirror of https://github.com/vapor/docs.git
Merge pull request #45 from courteouselk/master
Fix makeNode method to reflect its implementation higher in the text
This commit is contained in:
commit
5247fdd4ce
|
|
@ -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