Revert "RIFT-14989: Login fixes for Accounts and RO Config pages"
[osm/UI.git] / skyquake / plugins / accounts / api / accounts.js
index 83e841e..1b51c7b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *
+ * 
  *   Copyright 2016 RIFT.IO Inc
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
@@ -42,9 +42,7 @@ Accounts.get = function(req) {
                             type: req.params.type
                         })
                     });
-                }, function(reason) {
-            reject(reason);
-        })
+                })
         } else {
             getAll(req, resolve, reject);
         }
@@ -68,8 +66,6 @@ Accounts.get = function(req) {
                 statusCode: 200,
                 data: ReturnData
             });
-        }, function(reason) {
-            reject(reason);
         })
     }
 }