Skip to content

Commit

Permalink
log when a student gets saved
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrives committed Oct 7, 2018
1 parent 89136e6 commit 92607a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gob-web/helpers/save-student.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export function removeStudentFromCache(studentId: string) {
}
export async function saveStudent(student: Student) {
console.info(`saving ${student.id} (${student.name})`)
student = student.set('dateLastModified', new Date())
let str = stringify(student)
localStorage.setItem(student.id, str)
Expand Down

0 comments on commit 92607a4

Please sign in to comment.