fix auth
This commit is contained in:
parent
1e09fcfb64
commit
7e2b854f09
@ -9,9 +9,9 @@ module.exports = (req, res, next) => {
|
||||
return next();
|
||||
}
|
||||
|
||||
const client = realm.getRealmByKey(id);
|
||||
const client = realm.getClientById(id);
|
||||
|
||||
if (!realm) {
|
||||
if (!client) {
|
||||
return sendAuthError();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user