diff --git a/src/stories/hubbles_law/database.ts b/src/stories/hubbles_law/database.ts index e655d74..45fb9f0 100644 --- a/src/stories/hubbles_law/database.ts +++ b/src/stories/hubbles_law/database.ts @@ -337,6 +337,9 @@ async function getMergedIDsForClass(classID: number): Promise { const mergeEntries = await HubbleClassMergeGroup.findAll({ where: { group_id: mergeGroup.group_id, + merge_order: { + [Op.lte] : mergeGroup.merge_order, + } } }); return mergeEntries.map(entry => entry.class_id);