(ctx context.Context, arg database.UpdateUserNotificationPreferencesParams)
| 7518 | } |
| 7519 | |
| 7520 | func (q *querier) UpdateUserNotificationPreferences(ctx context.Context, arg database.UpdateUserNotificationPreferencesParams) (int64, error) { |
| 7521 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceNotificationPreference.WithOwner(arg.UserID.String())); err != nil { |
| 7522 | return -1, err |
| 7523 | } |
| 7524 | return q.db.UpdateUserNotificationPreferences(ctx, arg) |
| 7525 | } |
| 7526 | |
| 7527 | func (q *querier) UpdateUserProfile(ctx context.Context, arg database.UpdateUserProfileParams) (database.User, error) { |
| 7528 | u, err := q.db.GetUserByID(ctx, arg.ID) |
nothing calls this directly
no test coverage detected