(ctx context.Context, userID uuid.UUID)
| 4736 | } |
| 4737 | |
| 4738 | func (q *querier) GetUserNotificationPreferences(ctx context.Context, userID uuid.UUID) ([]database.NotificationPreference, error) { |
| 4739 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceNotificationPreference.WithOwner(userID.String())); err != nil { |
| 4740 | return nil, err |
| 4741 | } |
| 4742 | return q.db.GetUserNotificationPreferences(ctx, userID) |
| 4743 | } |
| 4744 | |
| 4745 | func (q *querier) GetUserSecretByID(ctx context.Context, id uuid.UUID) (database.UserSecret, error) { |
| 4746 | return fetch(q.log, q.auth, q.db.GetUserSecretByID)(ctx, id) |
nothing calls this directly
no test coverage detected