Taichi Masuyama 4 лет назад
Родитель
Сommit
e1ffd0db7f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/src/server/models/page-redirect.ts

+ 2 - 2
packages/app/src/server/models/page-redirect.ts

@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-explicit-any */
 /* eslint-disable @typescript-eslint/no-explicit-any */
 
 
 import {
 import {
-  Schema, Model, Document,
+  Schema, Model, Document, DeleteResult,
 } from 'mongoose';
 } from 'mongoose';
 import { getOrCreateModel } from '@growi/core';
 import { getOrCreateModel } from '@growi/core';
 
 
@@ -26,7 +26,7 @@ const schema = new Schema<PageRedirectDocument, PageRedirectModel>({
   toPath: { type: String, required: true },
   toPath: { type: String, required: true },
 });
 });
 
 
-schema.statics.removePageRedirectByFromPath = async function(fromPath: string): Promise<void> {
+schema.statics.removePageRedirectByFromPath = async function(fromPath: string): Promise<DeleteResult> {
   return this.deleteOne({ fromPath });
   return this.deleteOne({ fromPath });
 };
 };