This commit is contained in:
afrokick 2019-04-01 14:40:40 +03:00
parent 1e09fcfb64
commit 7e2b854f09

View File

@ -9,9 +9,9 @@ module.exports = (req, res, next) => {
return next(); return next();
} }
const client = realm.getRealmByKey(id); const client = realm.getClientById(id);
if (!realm) { if (!client) {
return sendAuthError(); return sendAuthError();
} }