Function update_notification

Source
pub async fn update_notification<J, RR, TR, NR, NFR, SR, TCR, PR>(
    notification_id: String,
    request: NotificationUpdateRequest,
    state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<HttpResponse, ApiError>
Expand description

Updates an existing notification.

§Arguments

  • notification_id - The ID of the notification to update.
  • request - The notification update request.
  • state - The application state containing the notification repository.

§Returns

The updated notification or an error if update fails.