MCPcopy Index your code
hub / github.com/coder/coder / convertNotificationPreferences

Function convertNotificationPreferences

coderd/notifications.go:448–458  ·  view source on GitHub ↗
(in []database.NotificationPreference)

Source from the content-addressed store, hash-verified

446}
447
448func convertNotificationPreferences(in []database.NotificationPreference) (out []codersdk.NotificationPreference) {
449 for _, pref := range in {
450 out = append(out, codersdk.NotificationPreference{
451 NotificationTemplateID: pref.NotificationTemplateID,
452 Disabled: pref.Disabled,
453 UpdatedAt: pref.UpdatedAt,
454 })
455 }
456
457 return out
458}

Calls

no outgoing calls

Tested by

no test coverage detected