I have following query:
async getIsExistingUser(hash: string) {
const isExisting = await this.onsModel.findOne({
salt: hash,
emailSalt: hash,
});
return Boolean(isExisting);
}
I want to find entity if 1 of the 2 is true, how to achieve it any idea?