Skip to content

Commit 1630088

Browse files
author
Greg Perkins
committed
if creating a user, mimic the contact info of the creator
1 parent 5a6febf commit 1630088

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/atlas_client.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class BotAtlasClient extends relay.AtlasClient {
2727
try {
2828
botUser = await onboardClient.fetch("/v1/user/", {
2929
method: "POST",
30-
json: Object.assign({}, this.onboardingCreatedUser, { user_type: "BOT" })
31-
});
30+
json: Object.assign({}, this.onboardingCreatedUser, { phone: botUser.phone, email: botUser.email, user_type: "BOT" }) });
3231
console.info(
3332
`Created new ${botUser.is_monitor ? "MONITOR" : ""} bot user @${
3433
botUser.tag.slug

0 commit comments

Comments
 (0)