mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
v4.8.3
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTqYa7kNs8D7Oo9dgLSEYbwtHKVrQUCYNSBfAAKCRDSEYbwtHKV rdNyAP9sT2e/01PE1p8l0PoTbq6nOL08BIA8ZKDiX/tFDeJ7owD9EikupgI6snND VrvRyA3AIZf3+hooAfjxIogX7NhUrQU= =Aqm+ -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTqYa7kNs8D7Oo9dgLSEYbwtHKVrQUCYNSCAwAKCRDSEYbwtHKV rWOLAQDCheD486UqjssUUaEAjNxjoSzwvqnHSpnfRJB809eOmAEAv0UzVYM+vcJ6 7vJdRXK2ke/dIc50n0mgRR8ktue6XAs= =TQTw -----END PGP SIGNATURE----- Merged v4.8.3 into main v4.8.3
This commit is contained in:
commit
53b7eb227b
3 changed files with 9 additions and 9 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 7c8de6c1ed29e89ad5bde6b701b9580bcc6cdab8
|
||||
Subproject commit f3f04b3b5718931fa4ac0be29baa8dc81063535a
|
|
@ -5,7 +5,12 @@ const errors = require('@tryghost/errors');
|
|||
* @param {Bookshelf} Bookshelf
|
||||
*/
|
||||
module.exports = function (Bookshelf) {
|
||||
Bookshelf.Model = Bookshelf.Model.extend({}, {
|
||||
Bookshelf.Model = Bookshelf.Model.extend({
|
||||
// When loading an instance, subclasses can specify default to fetch
|
||||
defaultColumnsToFetch: function defaultColumnsToFetch() {
|
||||
return [];
|
||||
}
|
||||
}, {
|
||||
/**
|
||||
* ### Find All
|
||||
* Fetches all the data for a particular model
|
||||
|
@ -69,7 +74,7 @@ module.exports = function (Bookshelf) {
|
|||
// and append default columns to fetch
|
||||
if (options.columns) {
|
||||
options.columns = _.intersection(options.columns, this.prototype.permittedAttributes());
|
||||
options.columns = _.union(options.columns, this.defaultColumnsToFetch());
|
||||
options.columns = _.union(options.columns, this.prototype.defaultColumnsToFetch());
|
||||
}
|
||||
|
||||
if (options.order) {
|
||||
|
@ -213,11 +218,6 @@ module.exports = function (Bookshelf) {
|
|||
.then(function then(obj) {
|
||||
return obj.destroy(options);
|
||||
});
|
||||
},
|
||||
|
||||
// When loading an instance, subclasses can specify default to fetch
|
||||
defaultColumnsToFetch: function defaultColumnsToFetch() {
|
||||
return [];
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ghost",
|
||||
"version": "4.8.2",
|
||||
"version": "4.8.3",
|
||||
"description": "The professional publishing platform",
|
||||
"author": "Ghost Foundation",
|
||||
"homepage": "https://ghost.org",
|
||||
|
|
Loading…
Add table
Reference in a new issue