~jan0sch/smederee

Showing details for patch 865de377ce2b8ab1db66aa2f0a30de3dcd5a4cec.
2023-05-16 (Tue), 8:01 AM - Jens Grassel - 865de377ce2b8ab1db66aa2f0a30de3dcd5a4cec

Tickets: Save current user as submitter.

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala with 1 added and 1 removed lines
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala new-smederee/modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala	2025-01-16 13:09:54.686144647 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/tickets/TicketRoutes.scala	2025-01-16 13:09:54.686144647 +0000
@@ -211,7 +211,7 @@
                           content = ticketData.content,
                           status = ticketData.status,
                           resolution = ticketData.resolution,
-                          submitter = None, // FIXME: Enable storing a submitter or default to current user.
+                          submitter = Submitter(SubmitterId(user.uid.toUUID), SubmitterName(user.name.toString)).some,
                           createdAt = timestamp,
                           updatedAt = timestamp
                         )