reducing card size in database if no planning poker was started

reducing:
- cards collection size
- database size
- size to transfer from server to client (publish / subscribe)
This commit is contained in:
Martin Filser 2023-03-17 21:31:18 +01:00
parent 4a7fa7c396
commit a929d1e3a4
2 changed files with 16 additions and 13 deletions

View file

@ -351,7 +351,7 @@ Cards.attachSchema(
},
'poker.question': {
type: Boolean,
defaultValue: false,
optional: true,
},
'poker.one': {
/**
@ -359,7 +359,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.two': {
/**
@ -367,7 +366,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.three': {
/**
@ -375,7 +373,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.five': {
/**
@ -383,7 +380,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.eight': {
/**
@ -391,7 +387,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.thirteen': {
/**
@ -399,7 +394,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.twenty': {
/**
@ -407,7 +401,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.forty': {
/**
@ -415,7 +408,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.oneHundred': {
/**
@ -423,7 +415,6 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.unsure': {
/**
@ -431,16 +422,14 @@ Cards.attachSchema(
*/
type: [String],
optional: true,
defaultValue: [],
},
'poker.end': {
type: Date,
optional: true,
defaultValue: null,
},
'poker.allowNonBoardMembers': {
type: Boolean,
defaultValue: false,
optional: true,
},
'poker.estimation': {
/**