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:
parent
fe461da110
commit
b4f355f713
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue