Skip to content

Commit defa04e

Browse files
committed
fix: exclude filter
1 parent 544b1ac commit defa04e

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export class UserRepository extends Repository<User> {
4141
getAgeRangeParsed(userToBeApproached.ageRangeString),
4242
)
4343
.filterRecentEncounters()
44-
.relatedToUser(userToBeApproached.id)
4544
.withDateModeLiveMode();
4645

4746
return this;
@@ -234,14 +233,6 @@ export class UserRepository extends Repository<User> {
234233
return this;
235234
}
236235

237-
private relatedToUser(userToBeApproachedId: string): this {
238-
this.queryBuilder.andWhere(
239-
"(encounterUser.id = :userToBeApproachedId OR encounterUser.id IS NULL)",
240-
{ userToBeApproachedId },
241-
);
242-
return this;
243-
}
244-
245236
private userWithSuitableApproachSettings(
246237
approachChoice: EApproachChoice,
247238
): this {

backend/test/integration/services/matching.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ describe("Matching Service Integration Tests ", () => {
296296

297297
it("should only find users with a recent location update", async () => {
298298
const now = new Date();
299-
const sixHoursAgo = new Date(now.getTime() - 6 * 60 * 60 * 1000);
299+
const sixHoursAgo = new Date(now.getTime() - 24 * 60 * 60 * 1000);
300300
const twoHoursAgo = new Date(now.getTime() - 2 * 60 * 60 * 1000);
301301

302302
const baseConfiguration = {

0 commit comments

Comments
 (0)