Merge branch 'dev' into staging
This commit is contained in:
commit
fd67d8da96
@ -21,7 +21,10 @@ export default class ContactRepository extends BaseRepository {
|
||||
public async findSomeByEmail(email: string): Promise<(Contacts & {customers: Customers | null})[] | null> {
|
||||
return this.model.findMany({
|
||||
where: {
|
||||
email: email,
|
||||
email: {
|
||||
equals: email,
|
||||
mode: "insensitive"
|
||||
}
|
||||
},
|
||||
include: { customers: true }
|
||||
});
|
||||
|
@ -27,9 +27,12 @@ export default class WhitelistRepository extends BaseRepository {
|
||||
* @description : find unique by email
|
||||
*/
|
||||
public async findOneByEmail(email: string) {
|
||||
return this.model.findUnique({
|
||||
return this.model.findMany({
|
||||
where: {
|
||||
email: email,
|
||||
email: {
|
||||
equals: email,
|
||||
mode: "insensitive"
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -316,7 +316,10 @@ export default class CustomersService extends BaseService {
|
||||
return this.customerRepository.findOne({
|
||||
where: {
|
||||
contact: {
|
||||
email,
|
||||
email:{
|
||||
equals: email,
|
||||
mode: 'insensitive'
|
||||
}
|
||||
},
|
||||
},
|
||||
include: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user