X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Faccounts%2Fapi%2Faccounts.js;h=1b51c7bfef51ccc7117756363e6ba5fb84ab9e71;hp=83e841e6263829ccf9d47cb6d5c3fb03e7093716;hb=8d06f92bda77338e7772a912ef3cde474f2a06ed;hpb=b78fbe20fd7d976b3e15abb2387b4e329a5ea918 diff --git a/skyquake/plugins/accounts/api/accounts.js b/skyquake/plugins/accounts/api/accounts.js index 83e841e62..1b51c7bfe 100644 --- a/skyquake/plugins/accounts/api/accounts.js +++ b/skyquake/plugins/accounts/api/accounts.js @@ -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); }) } }