Skip to content

Commit

Permalink
Add uid to startTime and endTime keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Sep 20, 2023
1 parent e18c7e4 commit 222f64f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ return 0;

async setStartTime() {
const startTime = this._timestamp();
return await this.redis.rpush(this.startkey, startTime);
return await this.redis.rpush(`this.startkey:${this.uid}`, startTime);
}

async setEndTime() {
const endTime = this._timestamp();
return await this.redis.rpush(this.endkey, endTime);
return await this.redis.rpush(`this.endkey:${this.uid}`, endTime);
}

async markStarted(url) {
Expand Down

0 comments on commit 222f64f

Please sign in to comment.