Browse Source

fix setting item location

pbs
jake 4 years ago
parent
commit
6de4b677ef
  1. 2
      src/entity/gateway/postgres/postgres.rs

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

Loading…
Cancel
Save