Skip to content

Commit b6b9f00

Browse files
committed
fix
1 parent 9378da3 commit b6b9f00

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/database/adapters/RunAdapter.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,14 @@ class RunAdapter {
277277
entityObject.muInelasticInteractionRate = collidingBunchesCount
278278
? inelasticInteractionRateAvg / (collidingBunchesCount * PhysicalConstant.LHC_REVOLUTION_FREQUENCY_HZ)
279279
: null;
280-
entityObject.collidingBunchesCount = collidingBunchesCount;
281280
} else {
282281
entityObject.muInelasticInteractionRate = null;
283-
entityObject.collidingBunchesCount = null;
284282
}
285283

284+
entityObject.collidingBunchesCount = lhcFill
285+
? lhcFill.collidingBunchesCount ?? extractNumberOfCollidingLhcBunchCrossings(lhcFill.fillingSchemeName)
286+
: null;
287+
286288
return entityObject;
287289
}
288290

0 commit comments

Comments
 (0)