Two suggestions: 1) pass in the specific attachment data for this edition, 2) only do this if the edition is in a `:published` state.