add timestamp to additional data
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 45s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m24s

This commit is contained in:
Lee 2024-10-22 19:08:22 +01:00
parent ca8fb41fab
commit 989d66780d
2 changed files with 7 additions and 0 deletions

@ -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;