mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
35f8042d7b
no issue - adds `search` bookshelf plugin that calls out to an optional `searchQuery()` method on individual models to apply model-specific SQL conditions to queries - updated the base model's `findPage()` method to use the search plugin within `findPage` calls - added a `searchQuery` method to the `member` model that performs a basic `LIKE %query%` for both `name` and `email` columns - allowed the `?search=` parameter to pass through in the `options` object for member browse requests
9 lines
307 B
JavaScript
9 lines
307 B
JavaScript
module.exports = {
|
|
filter: require('./filter'),
|
|
search: require('./search'),
|
|
includeCount: require('./include-count'),
|
|
pagination: require('./pagination'),
|
|
collision: require('./collision'),
|
|
transactionEvents: require('./transaction-events'),
|
|
hasPosts: require('./has-posts')
|
|
};
|