add timestamp to additional data
This commit is contained in:
parent
ca8fb41fab
commit
989d66780d
@ -211,6 +211,7 @@ export class ScoreService {
|
||||
left: score.accLeft,
|
||||
right: score.accRight,
|
||||
},
|
||||
timestamp: new Date(score.timeset),
|
||||
} as AdditionalScoreData;
|
||||
if (rawScoreImprovement && rawScoreImprovement.score > 0) {
|
||||
data.scoreImprovement = {
|
||||
|
@ -120,6 +120,12 @@ export class AdditionalScoreData {
|
||||
*/
|
||||
handAccuracy: HandAccuracy;
|
||||
};
|
||||
|
||||
/**
|
||||
* The date the score was set on.
|
||||
*/
|
||||
@prop({ required: true, index: true })
|
||||
public timestamp!: Date;
|
||||
}
|
||||
|
||||
export type AdditionalScoreDataDocument = AdditionalScoreData & Document;
|
||||
|
Reference in New Issue
Block a user