fix setting item location

This commit is contained in:
jake 2020-10-03 20:20:11 -06:00
parent c067ab444a
commit 6de4b677ef

View File

@ -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) {