afrokick 6 năm trước cách đây
mục cha
commit
7e2b854f09
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/api/middleware/auth/index.js

+ 2 - 2
src/api/middleware/auth/index.js

@@ -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();
   }