Updated book for master ***NO_CI***
This commit is contained in:
parent
9b036f1130
commit
4a8a8411d3
4 changed files with 4 additions and 4 deletions
|
@ -286,7 +286,7 @@ struct Mutation;
|
|||
impl Mutation {
|
||||
|
||||
fn createHuman(context: &Context, new_human: NewHuman) -> FieldResult<Human> {
|
||||
let db = executor.context().pool.get_connection()?;
|
||||
let db = context.pool.get_connection()?;
|
||||
let human: Human = db.insert_human(&new_human)?;
|
||||
Ok(human)
|
||||
}
|
||||
|
|
|
@ -241,7 +241,7 @@ struct Mutation;
|
|||
impl Mutation {
|
||||
|
||||
fn createHuman(context: &Context, new_human: NewHuman) -> FieldResult<Human> {
|
||||
let db = executor.context().pool.get_connection()?;
|
||||
let db = context.pool.get_connection()?;
|
||||
let human: Human = db.insert_human(&new_human)?;
|
||||
Ok(human)
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue