delete groups
This commit is contained in:
@@ -26,18 +26,3 @@ func GetUserByToken(ctx context.Context, token string) (*User, error) {
|
||||
}
|
||||
return GetUserById(ctx, userId)
|
||||
}
|
||||
|
||||
func GetGroup(ctx context.Context, groupId uuid.UUID) (*Group, error) {
|
||||
group, err := CacheGetGroup(groupId)
|
||||
if err != nil {
|
||||
group = &Group{Id: groupId}
|
||||
if err = DbGroupGetById(ctx, group); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err = DbGroupGetMembers(ctx, group); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
CacheSaveGroup(group)
|
||||
}
|
||||
return group, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user