We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4974305 commit 33e617eCopy full SHA for 33e617e
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