Fixed soft-remove of props and library props
This commit is contained in:
@@ -23,13 +23,7 @@ const restoreProperty = new ValidatedMethod({
|
||||
assertEditPermission(rootCreature, this.userId);
|
||||
|
||||
// Do work
|
||||
restore({
|
||||
_id,
|
||||
collection: CreatureProperties,
|
||||
extraUpdates: {
|
||||
$set: { dirty: true }
|
||||
},
|
||||
});
|
||||
restore(CreatureProperties, property, { $set: { dirty: true } });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ const softRemoveProperty = new ValidatedMethod({
|
||||
assertEditPermission(rootCreature, this.userId);
|
||||
|
||||
// Do work
|
||||
softRemove({ _id, collection: CreatureProperties });
|
||||
softRemove(CreatureProperties, property);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user