# Fix the approve handler
sed -i '/pub async fn approve(/,/^}/c\
pub async fn approve(\
    Path(id): Path<Uuid>,\
    State(state): State<AppState>,\
    Json(req): Json<ApproveRejectRequest>,\
) -> Result<Json<ApiResponse<Event>>> {\
    let event = crate::db::events::approve_pending(\&state.pool, \&id, req.admin_notes).await?;\
    \
    Ok(Json(ApiResponse {\
        success: true,\
        data: Some(event),\
        message: Some("Event approved successfully".to_string()),\
    }))\
}' src/handlers/events.rs

# Fix the reject handler  
sed -i '/pub async fn reject(/,/^}/c\
pub async fn reject(\
    Path(id): Path<Uuid>,\
    State(state): State<AppState>,\
    Json(req): Json<ApproveRejectRequest>,\
) -> Result<Json<ApiResponse<String>>> {\
    crate::db::events::reject_pending(\&state.pool, \&id, req.admin_notes).await?;\
    \
    Ok(Json(ApiResponse {\
        success: true,\
        data: Some("Event rejected".to_string()),\
        message: Some("Event rejected successfully".to_string()),\
    }))\
}' src/handlers/events.rs
