|
|
@@ -34,6 +34,8 @@ export interface IRevisionModel extends Model<IRevisionDocument> {
|
|
|
Schema.Types.String.checkRequired(v => typeof v === 'string');
|
|
|
|
|
|
const revisionSchema = new Schema<IRevisionDocument, IRevisionModel>({
|
|
|
+ // The type of pageId is always converted to String at server startup
|
|
|
+ // Refer to this method (/src/server/service/normalize-data/convert-revision-page-id-to-string.ts) to change the pageId type
|
|
|
pageId: {
|
|
|
type: String, required: true, index: true,
|
|
|
},
|