- fixed a bug where Structures are not shown/updated, #640
- upgraded "pathfinder_esi" Composer dependency `v1.2.4` -> 'v1.2.5'
This commit is contained in:
@@ -225,11 +225,12 @@ class StructureModel extends BasicModel {
|
||||
return $structuresData;
|
||||
}
|
||||
|
||||
public function getByName(CorporationModel $corporation, string $name) {
|
||||
public function getByName(CorporationModel $corporation, string $name, int $systemId) {
|
||||
if( !$corporation->dry() && $name){
|
||||
$this->has('structureCorporations', ['corporationId = :corporationId', ':corporationId' => $corporation->_id]);
|
||||
$this->load(['name = :name AND active = :active',
|
||||
$this->load(['name = :name AND systemId = :systemId AND active = :active',
|
||||
':name' => $name,
|
||||
':systemId' => $systemId,
|
||||
':active' => 1
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user