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 @@ -65,22 +65,22 @@ async function processCreate (message, ubahnToken) {
isInactive: !message.payload.active
}, ubahnToken)
logger.info(`external profile: ${organizationId} created`)
await helper.sleep()
//await helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'isAvailable'), message.payload.active.toString(), ubahnToken)
logger.info('user attribute: isAvailable created')
await helper.sleep()
//await helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'company'), 'Topcoder', ubahnToken)
logger.info('user attribute: company created')
await helper.sleep()
//await helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'title'), 'Member', ubahnToken)
logger.info('user attribute: title created')
await helper.sleep()
//await helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'location'), location, ubahnToken)
logger.info('user attribute: location created')

// Custom attribute. May or may not exist
if (_.get(attributes, 'email')) {
helper.sleep()
//helper.sleep()
await helper.createUserAttribute(userId, _.get(attributes, 'email'), message.payload.email, ubahnToken)
logger.info('user attribute: email created')
}
Expand Down