Skip to content

Commit c58860e

Browse files
committed
add toString() on the ID for readability
Signed-off-by: shirady <57721533+shirady@users.noreply.github.com>
1 parent ebf5f67 commit c58860e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdk/accountspace_nb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ class AccountSpaceNB {
2727

2828
async create_user(params, account_sdk) {
2929
const requesting_account = account_sdk.requesting_account;
30-
const account_email_wrapped = account_util.get_account_email_from_username(params.username, requesting_account._id);
30+
const account_email_wrapped = account_util.get_account_email_from_username(params.username, requesting_account._id.toString());
3131
const req = {
3232
name: params.username, // actual username saved
3333
email: account_email_wrapped, // unique email generated from username lowercase and root account id
3434
has_login: false,
3535
s3_access: true,
3636
allow_bucket_creation: true,
37-
owner: requesting_account._id,
37+
owner: requesting_account._id.toString(),
3838
iam_path: params.iam_path,
3939
roles: ['admin'],
4040
// TODO: default_resource remove

0 commit comments

Comments
 (0)