structure fuel
This commit is contained in:
@@ -106,6 +106,19 @@ class AssetHelper {
|
||||
Asset::where('updated_at', '<', $date)->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the liquid ozone asset
|
||||
*/
|
||||
public function GetAssetByType($type, $structureId) {
|
||||
$asset = Asset::where([
|
||||
'structure_id' => $structureId,
|
||||
'type' => $type,
|
||||
'location_flag' => 'StructureFuel',
|
||||
])->first();
|
||||
|
||||
return $asset->quantity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing asset based off the esi pull
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user