mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Disabled after hook for members newsletters pivot table
refs https://github.com/TryGhost/Team/issues/1469 We have an after hook to update `sort_order` for pivot tables after update as base bookshelf plugin. Since new `members_newsletters` table doesn't has a `sort_order` column on it, this change disables the after hook for it to avoid errors.
This commit is contained in:
parent
16f35df448
commit
473775788d
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ ghostBookshelf.plugin('bookshelf-relations', {
|
||||||
};
|
};
|
||||||
|
|
||||||
// CASE: disable after hook for specific relations
|
// CASE: disable after hook for specific relations
|
||||||
if (['permissions_roles'].indexOf(existing.relatedData.joinTableName) !== -1) {
|
if (['permissions_roles', 'members_newsletters'].indexOf(existing.relatedData.joinTableName) !== -1) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue