Skip to content

Commit b6bee2c

Browse files
committed
CI fix
1 parent 3836ab1 commit b6bee2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sdk/accountspace_nb.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class AccountSpaceNB {
5151
const requesting_account = system_store.get_account_by_email(account_sdk.requesting_account.email);
5252
account_util._check_if_requesting_account_is_root_account(action, requesting_account,
5353
{ username: params.username, iam_path: params.iam_path });
54-
await account_util._check_username_already_exists(action, params, requesting_account);
54+
account_util._check_username_already_exists(action, params, requesting_account);
5555
const iam_arn = iam_utils.create_arn_for_user(requesting_account._id.toString(), params.username, params.iam_path);
5656
const account_name = new SensitiveString(`${params.username}:${requesting_account.name.unwrap()}`);
5757
const req = {
@@ -94,7 +94,7 @@ class AccountSpaceNB {
9494
const requested_account = system_store.get_account_by_email(account_name);
9595
account_util._check_if_requesting_account_is_root_account(action, requesting_account,
9696
{ username: params.username, iam_path: params.iam_path });
97-
await account_util._check_if_account_exists(action, params.username, requesting_account);
97+
account_util._check_if_account_exists(action, params.username, requesting_account);
9898
account_util._check_if_requested_account_is_root_account_or_IAM_user(action, requesting_account, requested_account);
9999
// CORE CHANGES PENDING - START
100100
//const root_account = system_store.get_account_by_email(requesting_account.email);
@@ -165,7 +165,7 @@ class AccountSpaceNB {
165165
const account_name = new SensitiveString(`${params.username}:${requesting_account.name.unwrap()}`);
166166
const requested_account = system_store.get_account_by_email(account_name);
167167
account_util._check_if_requesting_account_is_root_account(action, requesting_account, { username: params.username });
168-
await account_util._check_if_account_exists(action, params.username, requesting_account);
168+
account_util._check_if_account_exists(action, params.username, requesting_account);
169169
account_util._check_if_requested_account_is_root_account_or_IAM_user(action, requesting_account, requested_account);
170170
//const root_account = system_store.get_account_by_email(requesting_account.email);
171171
account_util._check_if_requested_is_owned_by_root_account(action, requesting_account, requested_account);

src/util/account_util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async function create_account(req) {
141141
});
142142
return {
143143
token: auth_server.make_auth_token(auth),
144-
access_keys: account_access_info ? account_access_info.decrypted_access_keys : undefined,
144+
access_keys: account_access_info.decrypted_access_keys,
145145
id: req.rpc_params.is_iam ? created_account._id.toString() : undefined,
146146
create_date: req.rpc_params.is_iam ? new Date(created_account.last_update) : undefined,
147147
};

0 commit comments

Comments
 (0)