Ghost/ghost/admin/app/serializers
Rishabh Garg d16a8781a9 🐛 Fixed sending non-integer prices to tiers api (#2288)
closes https://github.com/TryGhost/Team/issues/1319

Due to how JS implements numbers, it's possible that when we multiple a number with 2 decimal places by 100 that we do not end up with an integer e.g. 9.95 * 100 = 994.999...

This is not a valid price for the API and so we must round it to the nearest integer. We round off prices both at source as well as in ties serializer to make sure we never send non integer prices to API.
2022-03-04 14:48:45 +05:30
..
action.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
api-key.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
application.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
custom-theme-setting-list.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
email-recipient.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
email.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
integration.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
invite.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
label.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
member.js Removed last_seen_at from the api queries 2022-02-24 18:46:57 +01:00
notification.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
page.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
post.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
product.js 🐛 Fixed sending non-integer prices to tiers api (#2288) 2022-03-04 14:48:45 +05:30
role.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
setting.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
tag.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
theme.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
user.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
webhook.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00