mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
f4d9a41d3b
no issue - NQL does not support the relationship setup that members->stripe customer<->stripe subscriptions uses so it wasn't possible to use the `filter` param to query against having an active subscription - adds `customQuery` bookshelf plugin that allows customisation of SQL query used in `findPage` method by individual models - use `customQuery` in Member model to set up joins and conditionals to select free/paid members when `options.paid` is present - allow `?paid` param through API and permitted options for member model
11 lines
351 B
JavaScript
11 lines
351 B
JavaScript
module.exports = {
|
|
filter: require('./filter'),
|
|
customQuery: require('./custom-query'),
|
|
search: require('./search'),
|
|
includeCount: require('./include-count'),
|
|
pagination: require('./pagination'),
|
|
collision: require('./collision'),
|
|
transactionEvents: require('./transaction-events'),
|
|
hasPosts: require('./has-posts')
|
|
};
|