Lol, actually use the transaction that we make
This commit is contained in:
parent
96915ca986
commit
fad2283aa2
|
@ -154,7 +154,7 @@ impl Database {
|
||||||
did: &str,
|
did: &str,
|
||||||
likely_country_of_living: &str,
|
likely_country_of_living: &str,
|
||||||
) -> Result<bool> {
|
) -> Result<bool> {
|
||||||
let transaction = self.connection_pool.begin().await?;
|
let mut transaction = self.connection_pool.begin().await?;
|
||||||
|
|
||||||
{
|
{
|
||||||
let mut params = Parameters::new();
|
let mut params = Parameters::new();
|
||||||
|
@ -168,7 +168,7 @@ impl Database {
|
||||||
.to_string(),
|
.to_string(),
|
||||||
)
|
)
|
||||||
.bind(did)
|
.bind(did)
|
||||||
.execute(&self.connection_pool)
|
.execute(&mut *transaction)
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ impl Database {
|
||||||
)
|
)
|
||||||
.bind(likely_country_of_living)
|
.bind(likely_country_of_living)
|
||||||
.bind(did)
|
.bind(did)
|
||||||
.execute(&self.connection_pool)
|
.execute(&mut *transaction)
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue