Skip to content

Commit 56b9ccc

Browse files
committed
fix(Impat\Embodied\Engine): do not use internal engine when asset model is empty
1 parent b6227e6 commit 56b9ccc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Impact/Embodied/Engine.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,8 @@ private static function hasModelData(CommonDBTM $item): bool
144144
];
145145
$types = Type::getImpactTypes();
146146
foreach ($types as $key => $type) {
147-
$crit[] = [
148-
'OR' => [
149-
['NOT' => [$type => null]],
150-
$type . '_quality' => ['<>', AbstractTracked::DATA_QUALITY_UNSET_VALUE]
151-
]
147+
$crit['OR'][] = [
148+
$type . '_quality' => ['<>', AbstractTracked::DATA_QUALITY_UNSET_VALUE]
152149
];
153150
}
154151
$model = new $model_class();

0 commit comments

Comments
 (0)