Updated book for master ***NO_CI***

This commit is contained in:
Juniper Bot 2020-10-01 17:25:00 +00:00
parent 9b036f1130
commit 4a8a8411d3
4 changed files with 4 additions and 4 deletions

View file

@ -286,7 +286,7 @@ struct Mutation;
impl Mutation { impl Mutation {
fn createHuman(context: &Context, new_human: NewHuman) -> FieldResult<Human> { 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)?; let human: Human = db.insert_human(&new_human)?;
Ok(human) Ok(human)
} }

View file

@ -241,7 +241,7 @@ struct Mutation;
impl Mutation { impl Mutation {
fn createHuman(context: &Context, new_human: NewHuman) -> FieldResult<Human> { 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)?; let human: Human = db.insert_human(&new_human)?;
Ok(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