|
|
@@ -57,8 +57,8 @@ const pageSchema = new mongoose.Schema({
|
|
|
pageIdOnHackmd: String,
|
|
|
revisionHackmdSynced: { type: ObjectId, ref: 'Revision' }, // the revision that is synced to HackMD
|
|
|
hasDraftOnHackmd: { type: Boolean }, // set true if revision and revisionHackmdSynced are same but HackMD document has modified
|
|
|
- createdAt: { type: Date, default: Date.now() },
|
|
|
- updatedAt: { type: Date, default: Date.now() },
|
|
|
+ createdAt: { type: Date, default: Date.now },
|
|
|
+ updatedAt: { type: Date, default: Date.now },
|
|
|
}, {
|
|
|
toJSON: { getters: true },
|
|
|
toObject: { getters: true },
|