feat: blocklist table (#24459)
* feat: blocklist table * feat: blocklist table * refactor: feedback * chore: add select * UI improvements * chore: remove un unsed --------- Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
co-authored by
CarinaWolli
parent
17ab088af8
commit
5a59bb86cd
@@ -1042,6 +1042,19 @@ export class UserRepository {
|
||||
});
|
||||
}
|
||||
|
||||
async findUsersByIds(userIds: number[]) {
|
||||
return this.prismaClient.user.findMany({
|
||||
where: {
|
||||
id: { in: userIds },
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
email: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async findUsersWithLastBooking({ userIds, eventTypeId }: { userIds: number[]; eventTypeId: number }) {
|
||||
return this.prismaClient.user.findMany({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user