Skip to content

Commit

Permalink
BC-4209 improve logging to identify teachers without firstnames in tsp (
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro authored Dec 6, 2023
1 parent 199d7f3 commit 1df15ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/sync/strategies/TSP/TSPSchoolSyncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class TSPSchoolSyncer extends mix(Syncer).with(ClassImporter) {
this.stats.errors.push({
type: 'update-teacher',
entity: tspTeacher.lehrerUid,
message: `Lehrer "${tspTeacher.lehrerVorname} ${tspTeacher.lehrerNachname}" konnte nicht aktualisiert werden.`,
message: `teacher "${tspTeacher.lehrerVorname} ${tspTeacher.lehrerNachname}" with tsp id ${tspTeacher.lehrerUid} and user id ${user._id} could not be updated.`,
});

return null;
Expand Down Expand Up @@ -542,8 +542,8 @@ class TSPSchoolSyncer extends mix(Syncer).with(ClassImporter) {
type: 'update-student',
entity: tspStudent.schuelerUid,
message:
`Schüler "${tspStudent.schuelerVorname} ${tspStudent.schuelerNachname}"` +
' konnte nicht aktualisiert werden.',
`student "${tspStudent.schuelerVorname} ${tspStudent.schuelerNachname}"` +
` with tsp id ${tspStudent.schuelerUid} and user id ${user._id} could not be updated.`,
});

return null;
Expand Down

0 comments on commit 1df15ec

Please sign in to comment.