|
@ -288,7 +288,7 @@ impl EntityGateway for PostgresGateway { |
|
|
sqlx::query("insert into item_location (item, location) values ($1, $2);")
|
|
|
sqlx::query("insert into item_location (item, location) values ($1, $2);")
|
|
|
.bind(item_id.0)
|
|
|
.bind(item_id.0)
|
|
|
.bind(sqlx::types::Json(PgItemLocationDetail::from(item_location)))
|
|
|
.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) {
|
|
|
async fn feed_mag(&mut self, mag_item_id: &ItemEntityId, tool_item_id: &ItemEntityId) {
|
|
|