1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-24 19:33:02 +03:00
Ghost/ghost/core/test/e2e-frontend/helpers
Daniel Lockyer 79368f565f
Fixed Tier events being created when Posts are edited
refs https://github.com/TryGhost/Team/issues/1875

- due to an misbehavior in our model layer, when `tiers` is set on a Post, it'll
  trigger a save of the Tier, and this produces an extra event in the
  `actions` table
- mapping the Tier(s) to just the ID prevents bookshelf-relations from
  editing the Tier and thus prevents the extra event
- also fixed tests which were implicitly assuming supplying a slug to a
  post would create the product
2022-09-05 17:19:27 +01:00
..
get.test.js Fixed Tier events being created when Posts are edited 2022-09-05 17:19:27 +01:00
next_post.test.js Fixed Tier events being created when Posts are edited 2022-09-05 17:19:27 +01:00