mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed members tests
no issue
This commit is contained in:
parent
c5833aa1d9
commit
fede3d05f5
2 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,7 @@ const Member = ghostBookshelf.Model.extend({
|
|||
this.handleAttachedModels(model);
|
||||
},
|
||||
onSaving: function onSaving(model, attr, options) {
|
||||
let labelsToSave;
|
||||
let labelsToSave = [];
|
||||
let ops = [];
|
||||
|
||||
// CASE: detect lowercase/uppercase label slugs
|
||||
|
|
|
@ -56,6 +56,7 @@ const expectedProperties = {
|
|||
member: _(schema.members)
|
||||
.keys()
|
||||
.concat('comped')
|
||||
.concat('labels')
|
||||
,
|
||||
role: _(schema.roles)
|
||||
.keys()
|
||||
|
|
Loading…
Reference in a new issue