Cleanup after inbox migration (#10487)

This commit is contained in:
Matteo Pagliazzi
2018-10-05 19:34:42 +02:00
committed by GitHub
parent a35f04be46
commit c880596a77
4 changed files with 11 additions and 28 deletions

View File

@@ -559,11 +559,7 @@ let schema = new Schema({
tags: [TagSchema],
inbox: {
// messages are stored in the Inbox collection, this path will be removed
// as soon as the migration has run and all the messages have been removed from here
messages: {type: Schema.Types.Mixed, default: () => {
return {};
}},
// messages are stored in the Inbox collection
newMessages: {type: Number, default: 0},
blocks: {type: Array, default: () => []},
optOut: {type: Boolean, default: false},