Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
totegamma committed Feb 1, 2024
1 parent 6a5046f commit 1ddf2ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ services:
- "POSTGRES_DB=concurrent"
networks:
- internal
- external
logging:
driver: loki
options:
Expand Down Expand Up @@ -129,6 +130,7 @@ services:
- "6379:6379"
networks:
- internal
- external
logging:
driver: loki
options:
Expand All @@ -154,6 +156,7 @@ services:
- "11211:11211"
networks:
- internal
- external
logging:
driver: loki
options:
Expand Down
2 changes: 1 addition & 1 deletion x/entity/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1ddf2ab

Please sign in to comment.