This commit is contained in:
2019-07-08 19:51:01 -05:00
parent 92b79b124f
commit 94cce31f47

View File

@@ -111,7 +111,7 @@ class AssetHelper {
*/ */
public function GetAssetByType($type, $structureId) { public function GetAssetByType($type, $structureId) {
$asset = Asset::where([ $asset = Asset::where([
'structure_id' => $structureId, 'location_id' => $structureId,
'type' => $type, 'type' => $type,
'location_flag' => 'StructureFuel', 'location_flag' => 'StructureFuel',
])->first(); ])->first();