(in []database.NotificationPreference)
| 446 | } |
| 447 | |
| 448 | func 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 | } |
no outgoing calls
no test coverage detected