0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed the usages of this.forge(null, {context: options.context})

no issue

- refs fe461da110
- the access plugin was removed
- no need to pass `context` as parameter for `.forge`
This commit is contained in:
kirrg001 2018-01-26 00:35:39 +01:00
parent fe461da110
commit b4f355f713

View file

@ -496,7 +496,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
options = this.filterOptions(options, 'findAll');
options.withRelated = _.union(options.withRelated, options.include);
var itemCollection = this.forge(null, {context: options.context});
var itemCollection = this.forge();
// transforms fictive keywords like 'all' (status:all) into correct allowed values
if (this.processOptions) {
@ -540,7 +540,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
options = options || {};
var self = this,
itemCollection = this.forge(null, {context: options.context}),
itemCollection = this.forge(),
tableName = _.result(this.prototype, 'tableName'),
requestedColumns = options.columns;