Skip to content

Commit

Permalink
Merge pull request #490 from concord-consortium/188673526-timestamps-…
Browse files Browse the repository at this point in the history
…for-feedback

feat: timestamps for feedback (PT-188673526)
  • Loading branch information
emcelroy authored Jan 16, 2025
2 parents 59dffdc + e3a9a21 commit 8de5ff6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ export function updateQuestionFeedbacks(data: any, reportState: IStateReportPart
feedback.questionId = answers[answerId].questionId;
feedback.platformTeacherId = platformUserId;
feedback.platformStudentId = answers[answerId].platformUserId;
feedback.updatedAt = firebase.firestore.FieldValue.serverTimestamp();
// contextId is used by security rules.
feedback.contextId = contextId;
const path = reportQuestionFeedbacksFireStorePath(reportState.sourceKey, answerId);
Expand All @@ -399,6 +400,7 @@ export function updateActivityFeedbacks(data: any, reportState: IStateReportPart
feedback.activityId = activityId;
feedback.platformTeacherId = platformUserId;
feedback.platformStudentId = platformStudentId;
feedback.updatedAt = firebase.firestore.FieldValue.serverTimestamp();
feedback.contextId = contextId;
const path = reportActivityFeedbacksFireStorePath(reportState.sourceKey, activityStudentKey);
return firebase.firestore()
Expand Down

0 comments on commit 8de5ff6

Please sign in to comment.