Function has_acknowledged_role_notification

Source
pub async fn has_acknowledged_role_notification(
    pool: &Pool<MySql>,
    user_id: i64,
    role_notification_id: i64,
) -> Result<bool>
Expand description

Checks if a user has acknowledged a specific role notification.

§Arguments

  • pool - Database connection pool for executing the query
  • user_id - ID of the user to check
  • role_notification_id - ID of the role notification to check

§Returns

  • Ok(bool) - True if acknowledged, false otherwise
  • Err(anyhow::Error) - Failed to check acknowledgment status