Taichi Masuyama hace 4 años
padre
commit
368cd0959a
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      packages/app/src/server/models/page-redirect.ts

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

@@ -20,7 +20,9 @@ export interface PageRedirectModel extends Model<PageRedirectDocument> {
  * This is the setting for notify to 3rd party tool (like Slack).
  * This is the setting for notify to 3rd party tool (like Slack).
  */
  */
 const schema = new Schema<PageRedirectDocument, PageRedirectModel>({
 const schema = new Schema<PageRedirectDocument, PageRedirectModel>({
-  fromPath: { type: String, required: true, unique: true },
+  fromPath: {
+    type: String, required: true, unique: true, index: true,
+  },
   toPath: { type: String, required: true },
   toPath: { type: String, required: true },
 });
 });