feat(assessment): assign the demonstration category and keep result history
This commit is contained in:
1 parent
b3c6dc870b
commit
8277133712
61 files changed
+4338
-268
No files matched your search
@@ -184,21 +184,9 @@ func notificationInboxOptionalUUID(value *uuid.UUID) pgtype.UUID {
|
||||
return pgUUID(*value)
|
||||
}
|
||||
|
||||
func notificationInboxEntryFromRow(row sqlc.GetNotificationInboxEventRow) (domain.NotificationInboxEntry, error) {
|
||||
return restoreNotificationInboxEntryRow(
|
||||
row.RecipientUserID, row.EventID, row.OrganizationID, row.EventType,
|
||||
row.SchemaVersion, row.SourceType, row.SourceID, row.OccurredAt, row.ReadAt,
|
||||
)
|
||||
}
|
||||
|
||||
func notificationInboxEntryFromListRow(row sqlc.ListNotificationInboxEventsRow) (domain.NotificationInboxEntry, error) {
|
||||
return restoreNotificationInboxEntryRow(
|
||||
row.RecipientUserID, row.EventID, row.OrganizationID, row.EventType,
|
||||
row.SchemaVersion, row.SourceType, row.SourceID, row.OccurredAt, row.ReadAt,
|
||||
)
|
||||
}
|
||||
|
||||
func notificationInboxEntryFromReadRow(row sqlc.MarkNotificationInboxEventReadRow) (domain.NotificationInboxEntry, error) {
|
||||
// The three inbox queries select every column of the table in table order, so
|
||||
// sqlc returns the shared model type for all of them.
|
||||
func notificationInboxEntryFromRow(row sqlc.NotificationInboxEvent) (domain.NotificationInboxEntry, error) {
|
||||
return restoreNotificationInboxEntryRow(
|
||||
row.RecipientUserID, row.EventID, row.OrganizationID, row.EventType,
|
||||
row.SchemaVersion, row.SourceType, row.SourceID, row.OccurredAt, row.ReadAt,
|
||||
|
||||
Reference in new issue
Block a user