Browse Source

clipster

pull/135/head
andy 2 years ago
parent
commit
905bc583c0
  1. 4
      src/entity/gateway/postgres/models.rs
  2. 1
      src/entity/item/mod.rs
  3. 4
      src/ship/items/actions.rs

4
src/entity/gateway/postgres/models.rs

@ -664,7 +664,7 @@ impl From<ItemNote> for PgItemNoteDetail {
},
ItemNote::FloorLimitReached { map_area } => {
PgItemNoteDetail::FloorLimitReached {
map_area: map_area,
map_area,
}
},
}
@ -712,7 +712,7 @@ impl From<PgItemNoteDetail> for ItemNote {
bank,
},
PgItemNoteDetail::FloorLimitReached { map_area } => ItemNote::FloorLimitReached {
map_area: map_area,
map_area,
},
}
}

1
src/entity/item/mod.rs

@ -10,7 +10,6 @@ pub mod esweapon;
use serde::{Serialize, Deserialize};
use crate::entity::character::CharacterEntityId;
use crate::ship::items::ClientItemId;
use crate::ship::map::MapArea;
use crate::ship::drops::ItemDropType;

4
src/ship/items/actions.rs

@ -1161,7 +1161,9 @@ where
Box::pin(async move {
let transaction = floor_item.with_entity_id(transaction, |mut transaction, entity_id| {
async move {
transaction.gateway().add_item_note(&entity_id, ItemNote::FloorLimitReached { map_area: map_area }).await?;
transaction.gateway().add_item_note(&entity_id, ItemNote::FloorLimitReached {
map_area
}).await?;
Ok(transaction)
}}).await?;
Ok(((item_state, transaction), ()))

Loading…
Cancel
Save