Skip to content

Commit 9f0082d

Browse files
committed
fix: errors confusing emailHash and emails 2/2
1 parent fa12a66 commit 9f0082d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/repositories/pog-profile.repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ export class PogProfileRepository extends DefaultCrudRepository<
163163
}
164164

165165
async getPogProfileByEmail(
166-
email: string,
166+
emailHash: string,
167167
): Promise<Partial<PogProfile> | undefined> {
168168
const profileQuerySnapshot: FirebaseFirestore.QuerySnapshot = await this.db
169169
.collection('pogprofiles')
170-
.where('email', '==', email)
170+
.where('emailHash', '==', emailHash)
171171
.get();
172172

173173
if (profileQuerySnapshot.docs.length > 1) {

0 commit comments

Comments
 (0)