Skip to content

Commit

Permalink
cleanup: mispelling request_id
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-harris authored and densumesh committed Jul 29, 2024
1 parent 5c24558 commit c4b83a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/handlers/analytics_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ pub async fn get_recommendation_analytics(
#[derive(Deserialize, Serialize, Clone, Debug, ToSchema)]
pub struct CTRDataRequestBody {
/// The request id for the CTR data
pub reqeust_id: uuid::Uuid,
pub request_id: uuid::Uuid,
/// The type of CTR data being sent e.g. search or recommendation
pub ctr_type: CTRType,
/// The ID of chunk that was clicked
Expand Down
2 changes: 1 addition & 1 deletion server/src/operators/analytics_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ pub async fn send_ctr_data_query(
"INSERT INTO default.ctr_data (id, request_id, type, chunk_id, dataset_id, position, metadata, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, now())",
)
.bind(uuid::Uuid::new_v4())
.bind(data.reqeust_id)
.bind(data.request_id)
.bind(data.ctr_type)
.bind(chunk_id)
.bind(dataset_id)
Expand Down

0 comments on commit c4b83a7

Please sign in to comment.