Skip to content

Commit 8577047

Browse files
authored
Merge pull request #384 from wavect/jc/fix-24-hrs
fix: 6 -> 24 hrs
2 parents 4974305 + 33e617e commit 8577047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/src/entities/user/user.repository.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ export class UserRepository extends Repository<User> {
177177
}
178178

179179
private withRecentLocationsOnly(): this {
180-
const sixHoursAgo = new Date(Date.now() - 6 * 60 * 60 * 1000);
180+
const h24HoursAgo = new Date(Date.now() - 24 * 60 * 60 * 1000);
181181
this.queryBuilder.andWhere(
182182
`
183183
user.locationLastTimeUpdated IS NOT NULL
184-
AND user.locationLastTimeUpdated >= :sixHoursAgo
184+
AND user.locationLastTimeUpdated >= :h24HoursAgo
185185
`,
186-
{ sixHoursAgo },
186+
{ h24HoursAgo },
187187
);
188188
return this;
189189
}

0 commit comments

Comments
 (0)