Sprint 17 features
Merge request reports
Activity
Filter activity
36 36 } ${submittingAuthor.lastName}` 37 37 38 38 const userHelper = new User({ UserModel }) 39 const eic = await userHelper.getEditorInChief() 39 const eics = await userHelper.getEditorsInChief() 40 const eic = eics[0] I suggest using the lodash head function (https://lodash.com/docs/4.17.10#head) in case of undefined.
37 37 38 38 const handlingEditor = get(collection, 'handlingEditor') 39 39 const userHelper = new User({ UserModel }) 40 const { firstName, lastName } = await userHelper.getEditorInChief() 41 const eicName = `${firstName} ${lastName}` I suggest having a default/fallback name ex.
Editor In Chief
Edited by Bogdan Cochior
mentioned in commit 33578445