@@ -191,7 +191,6 @@ async function createAchievement (userId, providerName, certifierId, certifiedDa
191
191
*/
192
192
async function createUserAttributes ( userId , record ) {
193
193
let i = 1
194
- logger . debug ( `*** createUserAttributes('${ userId } ','${ JSON . stringify ( record , null , 4 ) } ')` )
195
194
while ( record [ `attributeValue${ i } ` ] ) {
196
195
logger . debug ( `*** createUserAttributes: record number${ i } ` )
197
196
@@ -204,8 +203,6 @@ async function createUserAttributes (userId, record) {
204
203
const attributeGroup = await helper . getUbahnSingleRecord ( '/attributeGroups' , { name : record [ `attributeGroupName${ i } ` ] } )
205
204
const attribute = await helper . getUbahnSingleRecord ( '/attributes' , { attributeGroupId : attributeGroup . id , name : record [ `attributeName${ i } ` ] } )
206
205
const value = _ . toString ( record [ `attributeValue${ i } ` ] )
207
- logger . debug ( `*** createUserAttributes: attribute/value = ${ JSON . stringify ( attribute ) } /${ value } ` )
208
-
209
206
const existingAttribute = await helper . getUbahnSingleRecord ( `/users/${ userId } /attributes/${ attribute . id } ` , { } , true )
210
207
211
208
if ( ! existingAttribute || ! existingAttribute . id ) {
@@ -248,8 +245,6 @@ async function processCreate (message) {
248
245
try {
249
246
const file = await helper . downloadFile ( message . payload . objectKey )
250
247
const records = helper . parseExcel ( file )
251
- logger . info ( 'Extracted records below:' )
252
- logger . info ( JSON . stringify ( records , null , 4 ) )
253
248
const failedRecord = [ ]
254
249
255
250
await Promise . map ( records , record => processCreateRecord ( record , failedRecord , message . payload . organizationId ) , { concurrency : config . PROCESS_CONCURRENCY_COUNT } )
0 commit comments