@@ -1060,11 +1060,11 @@ schema.methods.publish = function() {
schema.methods.unpublish = function() {
this.wip = true;
- this.wipExpiredAt = new Date();
};
schema.methods.makeWip = function() {
+ this.wipExpiredAt = new Date();
/*
@@ -3793,7 +3793,7 @@ class PageService implements IPageService {
// Set wip
if (options.wip) {
- page.unpublish();
+ page.makeWip();
}
// Save