Skip to content

Commit

Permalink
Update start time in manifest when changing session.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesremuscat committed Apr 13, 2024
1 parent fc16583 commit 271378c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export class Service extends EventEmitter {
onSessionChange() {
this.service = {
...this.service,
currentSessionIndex: (this.service.currentSessionIndex || 0) + 1
currentSessionIndex: (this.service.currentSessionIndex || 0) + 1,
startTime: Date.now()
};
this.emit(Events.SESSION_CHANGE, this.service.currentSessionIndex);
}
Expand Down

0 comments on commit 271378c

Please sign in to comment.