Przeglądaj źródła

fix revision pageId schema

Yuki Takei 1 rok temu
rodzic
commit
827e7cadb9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apps/app/src/server/models/revision.ts

+ 1 - 1
apps/app/src/server/models/revision.ts

@@ -35,7 +35,7 @@ Schema.Types.String.checkRequired(v => typeof v === 'string');
 
 const revisionSchema = new Schema<IRevisionDocument, IRevisionModel>({
   pageId: {
-    type: Types.ObjectId, ref: 'Page', required: true, index: true,
+    type: String, required: true, index: true,
   },
   body: {
     type: String,