Skip to content

Commit

Permalink
fix(webserver): fix tabby build (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Apr 7, 2024
1 parent 0c94dda commit 0ae6bbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions ee/tabby-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,6 @@ fn make_pagination_query_with_condition(
select.as_string()
}

fn make_pagination_query(
table_name: &str,
field_names: &[&str],
limit: Option<usize>,
skip_id: Option<i32>,
backwards: bool,
) -> String {
make_pagination_query_with_condition(table_name, field_names, limit, skip_id, backwards, None)
}

impl DbConn {
#[cfg(any(test, feature = "testutils"))]
pub async fn new_in_memory() -> Result<Self> {
Expand Down
4 changes: 2 additions & 2 deletions ee/tabby-db/src/user_completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl DbConn {
// FIXME(boxbeam): index `created_at` in user_completions table.
pub async fn compute_daily_stats_in_past_year(
&self,
users: Vec<i32>,
users: Vec<i64>,
) -> Result<Vec<UserCompletionDailyStatsDAO>> {
let users = users
.iter()
Expand Down Expand Up @@ -99,7 +99,7 @@ impl DbConn {
&self,
start: DateTime<Utc>,
end: DateTime<Utc>,
users: Vec<i32>,
users: Vec<i64>,
languages: Vec<String>,
) -> Result<Vec<UserCompletionDailyStatsDAO>> {
let users = users
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/service/analytic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl AnalyticService for AnalyticServiceImpl {
}
}

fn convert_ids(ids: Vec<ID>) -> Vec<i32> {
fn convert_ids(ids: Vec<ID>) -> Vec<i64> {
ids.into_iter()
.filter_map(|id| match id.as_rowid() {
Ok(rowid) => Some(rowid),
Expand Down

0 comments on commit 0ae6bbd

Please sign in to comment.