Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dsTw5 committed Apr 23, 2024
1 parent fc50eba commit 65f4024
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions list-numbers/functions/list_accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ exports.handler = async function (context, event, callback) {
});
response.setStatusCode(200);
response.setBody(allAccounts);
return callback(null, response);
} else {
sub = await client.api.v2010.accounts.list().then((accounts) =>
accounts.forEach((a) => {
Expand All @@ -46,8 +45,8 @@ exports.handler = async function (context, event, callback) {
);
response.setStatusCode(200);
response.setBody(allAccounts);
return callback(null, response);
}
return callback(null, response);
} catch (error) {
console.error(error.message);
response.setStatusCode(error.status || 400);
Expand Down

0 comments on commit 65f4024

Please sign in to comment.