We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa12a66 commit 9f0082dCopy full SHA for 9f0082d
src/repositories/pog-profile.repository.ts
@@ -163,11 +163,11 @@ export class PogProfileRepository extends DefaultCrudRepository<
163
}
164
165
async getPogProfileByEmail(
166
- email: string,
+ emailHash: string,
167
): Promise<Partial<PogProfile> | undefined> {
168
const profileQuerySnapshot: FirebaseFirestore.QuerySnapshot = await this.db
169
.collection('pogprofiles')
170
- .where('email', '==', email)
+ .where('emailHash', '==', emailHash)
171
.get();
172
173
if (profileQuerySnapshot.docs.length > 1) {
0 commit comments