hostLowerは廃止してhostにlowerしたものを入れるように
This commit is contained in:
parent
26c979bcec
commit
d81c20f163
9 changed files with 10 additions and 16 deletions
|
|
@ -65,7 +65,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
|
|||
|
||||
const q = userId !== undefined
|
||||
? { _id: userId }
|
||||
: { usernameLower: username.toLowerCase(), hostLower: getHostLower(host) } ;
|
||||
: { usernameLower: username.toLowerCase(), host: getHostLower(host) } ;
|
||||
|
||||
// Lookup user
|
||||
const user = await User.findOne(q, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue