Skip to content

Commit

Permalink
fix: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunwarman committed Oct 3, 2024
1 parent 1113b2f commit 8802219
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/models/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,11 @@ const Domains = new mongoose.Schema({
default: '25',
validator: (value) => isPort(value)
},
alias_count: { type: Number },
alias_count: {
type: Number,
min: 0,
index: true
},
members: [Member],
invites: [Invite],
name: {
Expand Down
1 change: 1 addition & 0 deletions app/models/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ object[config.userFields.defaultDomain] = {

object[config.userFields.domainCount] = {
type: Number,
min: 0,
index: true
};

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/domains/_table.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include ../../_pagination
+sortHeader('is_global', 'Global', '#table-domains')
th.align-middle(scope="col")= t("Members")
th(scope="col")
+sortHeader('aliases', 'Aliases', '#table-domains')
+sortHeader('alias_count', 'Aliases', '#table-domains')
th(scope="col")
+sortHeader('plan', 'Plan', '#table-domains')
th(scope="col")
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/users/_table.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include ../../_pagination
th(scope="col")
+sortHeader('email', null, '#table-users')
th(scope="col")
+sortHeader('domains', null, '#table-users')
+sortHeader('domain_count', 'Domains', '#table-users')
th(scope="col")
+sortHeader('plan', null, '#table-users')
th(scope="col")
Expand Down

0 comments on commit 8802219

Please sign in to comment.