Merge branch 'groups-get-account-refactoring' into posturechecks-get-account-refactoring

This commit is contained in:
bcmmbaga
2024-11-15 20:52:59 +03:00
24 changed files with 376 additions and 189 deletions

View File

@ -1278,7 +1278,7 @@ func (s *SqlStore) DeleteGroups(ctx context.Context, strength LockingStrength, a
Delete(&nbgroup.Group{}, accountAndIDsQueryCondition, accountID, groupIDs)
if result.Error != nil {
log.WithContext(ctx).Errorf("failed to delete groups from store: %v", result.Error)
return status.Errorf(status.Internal, "failed to delete groups from store: %v", result.Error)
return status.Errorf(status.Internal, "failed to delete groups from store")
}
return nil