mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Fix uploads to edit_events
table (#8318)
This PR fixes uploads the `edit_events` table. We were trying to insert into a column that didn't exist: ``` HTTP error 500 Internal Server Error: failed to upload to table 'edit_events' Caused by: bad response: Code: 16. DB::Exception: No such column os_name in table default.edit_events ``` Release Notes: - N/A
This commit is contained in:
parent
622cae19eb
commit
7599933f30
@ -703,11 +703,6 @@ pub struct EditEventRow {
|
||||
patch: Option<i32>,
|
||||
release_channel: String,
|
||||
|
||||
// SystemInfoBase
|
||||
os_name: String,
|
||||
os_version: Option<String>,
|
||||
architecture: String,
|
||||
|
||||
// ClientEventBase
|
||||
installation_id: Option<String>,
|
||||
// Note: This column name has a typo in the ClickHouse table.
|
||||
@ -742,9 +737,6 @@ impl EditEventRow {
|
||||
minor: semver.map(|s| s.minor as i32),
|
||||
patch: semver.map(|s| s.patch as i32),
|
||||
release_channel: body.release_channel.clone().unwrap_or_default(),
|
||||
os_name: body.os_name.clone(),
|
||||
os_version: body.os_version.clone(),
|
||||
architecture: body.architecture.clone(),
|
||||
installation_id: body.installation_id.clone(),
|
||||
session_id: body.session_id.clone(),
|
||||
is_staff: body.is_staff,
|
||||
|
Loading…
Reference in New Issue
Block a user