@@ -682,6 +682,7 @@ Crowi.prototype.setupPageService = async function() {
}
if (this.pageOperationService == null) {
this.pageOperationService = new PageOperationService(this);
+ await this.pageOperationService.initPageOperation();
};
@@ -10,9 +10,10 @@ class PageOperationService {
constructor(crowi) {
this.crowi = crowi;
+ }
- // TODO: Remove this code when resuming feature is implemented
- PageOperation.deleteMany({});
+ async initPageOperation():Promise<void> {
+ await PageOperation.deleteMany({});
/**