Skip to content

Commit

Permalink
fix: fixed lookup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Aug 30, 2024
1 parent a77f526 commit 7c7614a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -2277,7 +2277,7 @@ async function getMaxQuota(_id, aliasId, locale = i18n.config.defaultLocale) {
.lean()
.exec(),
typeof aliasId === 'string'
? conn.models.Aliases.findOne({ id: aliasId, domain: _id })
? conn.models.Aliases.findOne({ id: aliasId })
.select('max_quota')
.lean()
.exec()
Expand Down

0 comments on commit 7c7614a

Please sign in to comment.