Modifiche
This commit is contained in:
@@ -6,16 +6,8 @@ class GroupsService {
|
||||
this.usersRepository = usersRepository;
|
||||
}
|
||||
|
||||
async getAllGroups() {
|
||||
return await this.groupsRepository.findAll({
|
||||
include: [
|
||||
{
|
||||
model: this.usersRepository.User,
|
||||
as: 'members',
|
||||
through: { attributes: [] },
|
||||
},
|
||||
],
|
||||
});
|
||||
async getAllGroups(userId) {
|
||||
return await this.groupsRepository.findByUserId(userId);
|
||||
}
|
||||
|
||||
async getGroupById(groupId) {
|
||||
|
||||
Reference in New Issue
Block a user