Skip to content

Commit f9c57fd

Browse files
Revert unnecessary log items
1 parent a68fe57 commit f9c57fd

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

service/src/main/kotlin/fi/espoo/evaka/pis/controllers/ParentshipController.kt

+2-11
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class ParentshipController(
6969
Audit.ParentShipsCreate.log(
7070
targetId = AuditId(listOf(body.headOfChildId, body.childId)),
7171
objectId = AuditId(parentship.id),
72-
meta = mapOf("modifiedBy" to user.evakaUserId),
7372
)
7473
}
7574

@@ -166,12 +165,7 @@ class ParentshipController(
166165
}
167166
Audit.ParentShipsUpdate.log(
168167
targetId = AuditId(id),
169-
meta =
170-
mapOf(
171-
"startDate" to body.startDate,
172-
"endDate" to body.endDate,
173-
"modifiedBy" to user.evakaUserId,
174-
),
168+
meta = mapOf("startDate" to body.startDate, "endDate" to body.endDate),
175169
)
176170
}
177171

@@ -223,10 +217,7 @@ class ParentshipController(
223217
parentshipService.deleteParentship(tx, clock, id)
224218
}
225219
}
226-
Audit.ParentShipsDelete.log(
227-
targetId = AuditId(id),
228-
meta = mapOf("deletedBy" to user.evakaUserId),
229-
)
220+
Audit.ParentShipsDelete.log(targetId = AuditId(id))
230221
}
231222

232223
data class ParentshipRequest(

0 commit comments

Comments
 (0)