Skip to content

Commit

Permalink
Consider merge order when determining class IDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Oct 29, 2024
1 parent 0e0aa16 commit e48ade6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stories/hubbles_law/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ async function getMergedIDsForClass(classID: number): Promise<number[]> {
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);
Expand Down

0 comments on commit e48ade6

Please sign in to comment.