Skip to content

Commit

Permalink
Fixes warning in activity import
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxscha committed Mar 23, 2022
1 parent 527d90a commit fc75555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/activity-import/handler/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ module.exports = ({buildTRMAPI, trmDataFolderID, log}) => {
const bestGuessMember = teamMembersWithCanonicalName.find(m => m.canonical_name === bestGuess.target)
// not finding them can not happen technically, but check anyway
if(!bestGuessMember) {
log.warn(`expected to find ${bestGuess.target} in edyoucated members, but didn't, ignoring...`)
log.warning(`expected to find ${bestGuess.target} in edyoucated members, but didn't, ignoring...`)
continue
}

if(edyoucatedUserIDsInSemester.includes(bestGuessMember.id)) {
log.warn(`edyoucated user id ${bestGuessMember.id} for ${bestGuessMember.name} is already in use for semester ${semesterID}, ignoring...`)
log.warning(`edyoucated user id ${bestGuessMember.id} for ${bestGuessMember.name} is already in use for semester ${semesterID}, ignoring...`)
continue
}

Expand Down

0 comments on commit fc75555

Please sign in to comment.