소스 검색

Fixed lint

Taichi Masuyama 4 년 전
부모
커밋
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 */
 
 import {
-  Schema, Model, Document,
+  Schema, Model, Document, DeleteResult,
 } from 'mongoose';
 import { getOrCreateModel } from '@growi/core';
 
@@ -26,7 +26,7 @@ const schema = new Schema<PageRedirectDocument, PageRedirectModel>({
   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 });
 };