diff --git a/compose.yml b/compose.yml index ff9851d6..d4816b71 100644 --- a/compose.yml +++ b/compose.yml @@ -97,6 +97,7 @@ services: - "POSTGRES_DB=concurrent" networks: - internal + - external logging: driver: loki options: @@ -129,6 +130,7 @@ services: - "6379:6379" networks: - internal + - external logging: driver: loki options: @@ -154,6 +156,7 @@ services: - "11211:11211" networks: - internal + - external logging: driver: loki options: diff --git a/x/entity/repository.go b/x/entity/repository.go index 384331dd..fe83f252 100644 --- a/x/entity/repository.go +++ b/x/entity/repository.go @@ -35,7 +35,7 @@ func (r *repository) Total(ctx context.Context) (int64, error) { defer span.End() var count int64 - err := r.db.WithContext(ctx).Model(&core.Entity{}).Where("domain IS NULL or domain = ''").Count(&count).Error + err := r.db.WithContext(ctx).Model(&core.Entity{}).Count(&count).Error return count, err }