An artillerist artificer gains use of an "eldritch cannon" as part of the subclass' abilities. It has several modes, one of which is force ballista, which allows the artillerist to fire it as a bonus action to do the following:
Make a ranged spell attack, originating from the cannon, at one creature or object within 120 feet of it. On a hit, the target takes 2d8 force damage, and if the target is a creature, it is pushed up to 5 feet away from the cannon.
When DnD Beyond shows this attack, it shows the spellcaster's attack modifier being applied to damage, but the ability is unclear as to whether this ability should be applied, and we know that DnD Beyond makes mistakes. Should this modifier be applied to damage?