Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/services/ProcessorService.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@ async function processCreate (message, ubahnToken) {

const userId = await helper.createUser(_.pick(message.payload, 'handle', 'firstName', 'lastName'), ubahnToken)
logger.info(`user: ${message.payload.handle} created`)
helper.sleep()
await helper.sleep()
await helper.createExternalProfile(userId, {
organizationId,
uri: `${config.MEMBER_PROFILE_URL_PREFIX}${message.payload.handle}`,
externalId: message.payload.id,
isInactive: !message.payload.active
}, ubahnToken)
logger.info(`external profile: ${organizationId} created`)
helper.sleep()
await helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'isAvailable'), message.payload.active.toString(), ubahnToken)
logger.info('user attribute: isAvailable created')
helper.sleep()
await helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'company'), 'Topcoder', ubahnToken)
logger.info('user attribute: company created')
helper.sleep()
await helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'title'), 'Member', ubahnToken)
logger.info('user attribute: title created')
helper.sleep()
await helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'location'), location, ubahnToken)
logger.info('user attribute: location created')

Expand Down