We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4974305 + 33e617e commit 8577047Copy full SHA for 8577047
backend/src/entities/user/user.repository.ts
@@ -177,13 +177,13 @@ export class UserRepository extends Repository<User> {
177
}
178
179
private withRecentLocationsOnly(): this {
180
- const sixHoursAgo = new Date(Date.now() - 6 * 60 * 60 * 1000);
+ const h24HoursAgo = new Date(Date.now() - 24 * 60 * 60 * 1000);
181
this.queryBuilder.andWhere(
182
`
183
user.locationLastTimeUpdated IS NOT NULL
184
- AND user.locationLastTimeUpdated >= :sixHoursAgo
+ AND user.locationLastTimeUpdated >= :h24HoursAgo
185
`,
186
- { sixHoursAgo },
+ { h24HoursAgo },
187
);
188
return this;
189
0 commit comments