0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/models
Fabien 'egg' O'Carroll 26c3e77640
Ordered Products by their monthly price by default (#13234)
refs https://github.com/TryGhost/Team/issues/714

In order to order products by their monthly price we need to apply a
join with the stripe_prices table when querying so we have access to the
amount column of stripe_prices.

As this ordering is core to how the tiers feature is intended to work,
we have added it as the default order. But this can be overriden by
manually passing the order option.

Also ensured that we do not create duplicate products in test fixtures
2021-08-20 14:46:06 +02:00
..
base Added bulkEdit to bulk-operations bookshelf plugin (#13223) 2021-08-13 12:19:02 +01:00
relations
action.js
api-key.js Extracted Bookshelf actions code to plugin 2021-06-17 12:04:38 +01:00
author.js
benefit.js Added Benefit model 2021-06-29 16:53:15 +01:00
email-batch.js
email-recipient.js
email.js
index.js Added Benefit model 2021-06-29 16:53:15 +01:00
integration.js 🔒 Fixed permissible method for Integration Model 2021-07-20 13:43:29 +01:00
invite.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
label.js
member-email-change-event.js
member-login-event.js
member-paid-subscription-event.js
member-payment-event.js
member-status-event.js Readded support for comped status in event aggregate (#13142) 2021-07-15 15:17:51 +01:00
member-stripe-customer.js
member-subscribe-event.js
member.js Added ability to filter members on subscription data (#13214) 2021-08-12 10:10:51 +01:00
mobiledoc-revision.js
permission.js
post.js Added a 'sent' status to post model 2021-08-13 10:06:15 +04:00
posts-meta.js Added email_only column to posts_meta table 2021-08-05 19:44:35 +12:00
product.js Ordered Products by their monthly price by default (#13234) 2021-08-20 14:46:06 +02:00
role.js
session.js 🔒 Added a "reset all passwords" feature (#13005) 2021-06-23 14:54:28 +02:00
settings.js Moved labs utlity to shared 2021-07-08 09:05:41 +01:00
single-use-token.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
snippet.js
stripe-customer-subscription.js
stripe-price.js
stripe-product.js
tag-public.js
tag.js
user.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00
webhook.js