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