feat(core): Email recipients on resource shared (#8408)
This commit is contained in:
@@ -84,4 +84,14 @@ export class UserRepository extends Repository<User> {
|
||||
|
||||
return findManyOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get emails of users who have completed setup, by user IDs.
|
||||
*/
|
||||
async getEmailsByIds(userIds: string[]) {
|
||||
return await this.find({
|
||||
select: ['email'],
|
||||
where: { id: In(userIds), password: Not(IsNull()) },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user