mirror of https://github.com/vapor/docs.git
NodeRepresentable makeNode needs a Context
This commit is contained in:
parent
0faa1d35e4
commit
749ad90780
|
|
@ -72,7 +72,7 @@ Now that we have covered initializing the model, we need to show it how to save
|
|||
|
||||
```swift
|
||||
final class User: Model {
|
||||
func makeNode() throws -> Node {
|
||||
func makeNode(context: Context) throws -> Node {
|
||||
return try Node(node: [
|
||||
"id": id,
|
||||
"name": name
|
||||
|
|
|
|||
Loading…
Reference in New Issue