Skip to content

Commit

Permalink
chore: fix cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
RWDai committed Nov 7, 2024
1 parent 65bb0ec commit af60bc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async fn do_paginate(
) -> TardisResult<TardisPage<StatsConfDimGroupInfoResp>> {
let table_name = package_table_name("stats_conf_dim_group", ctx);
let sql_where = vec!["1 = 1".to_string()];
let mut sql_order= vec![];
let mut sql_order = vec![];
let params: Vec<Value> = vec![Value::from(page_size), Value::from((page_number - 1) * page_size)];

if let Some(desc_by_create) = desc_by_create {
Expand Down
15 changes: 6 additions & 9 deletions frontend/sdks/invoke/src/clients/spi_log_client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use asteroid_mq::prelude::{EventAttribute, Subject};
use serde::{Deserialize, Serialize};

use tardis::{
Expand Down Expand Up @@ -29,6 +28,12 @@ pub mod event {
impl EventAttribute for super::LogItemAddV2Req {
const SUBJECT: Subject = Subject::const_new("log/add");
}
impl EventAttribute for super::StatsItemAddReq {
const SUBJECT: Subject = Subject::const_new("stats/add");
}
impl EventAttribute for super::StatsItemDeleteReq {
const SUBJECT: Subject = Subject::const_new("stats/delete");
}
}
#[derive(Debug, Default, Clone)]
pub struct SpiLogClient;
Expand Down Expand Up @@ -118,10 +123,6 @@ pub struct StatsItemAddReq {
pub own_paths: Option<String>,
}

impl EventAttribute for StatsItemAddReq {
const SUBJECT: Subject = Subject::const_new("stats/add");
}

#[derive(poem_openapi::Object, Serialize, Deserialize, Clone, Debug)]
pub struct StatsItemDeleteReq {
#[oai(validator(min_length = "2"))]
Expand All @@ -132,10 +133,6 @@ pub struct StatsItemDeleteReq {
pub key: Option<TrimString>,
}

impl EventAttribute for StatsItemDeleteReq {
const SUBJECT: Subject = Subject::const_new("stats/delete");
}

impl SpiLogClient {
#[deprecated]
pub async fn add_dynamic_log(
Expand Down

0 comments on commit af60bc4

Please sign in to comment.