From 6de4b677ef63bc9b3a18322f9564f131dc83f3a8 Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 3 Oct 2020 20:20:11 -0600 Subject: [PATCH] fix setting item location --- src/entity/gateway/postgres/postgres.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/gateway/postgres/postgres.rs b/src/entity/gateway/postgres/postgres.rs index 3ae3f2c..55ef325 100644 --- a/src/entity/gateway/postgres/postgres.rs +++ b/src/entity/gateway/postgres/postgres.rs @@ -288,7 +288,7 @@ impl EntityGateway for PostgresGateway { sqlx::query("insert into item_location (item, location) values ($1, $2);") .bind(item_id.0) .bind(sqlx::types::Json(PgItemLocationDetail::from(item_location))) - .fetch_one(&self.pool).await.unwrap(); + .execute(&self.pool).await.unwrap(); } async fn feed_mag(&mut self, mag_item_id: &ItemEntityId, tool_item_id: &ItemEntityId) {