This commit is contained in:
Ruben Fiszel
2025-09-20 01:03:40 +00:00
parent 8518b7c897
commit d8577db9e2
3 changed files with 18 additions and 18 deletions
+8 -8
View File
@@ -147,14 +147,14 @@ fn is_false(b: &bool) -> bool {
!b
}
#[derive(FromRow, Serialize, Deserialize)]
pub struct AppVersion {
pub id: i64,
pub app_id: Uuid,
pub value: sqlx::types::Json<Box<RawValue>>,
pub created_by: String,
pub created_at: chrono::DateTime<chrono::Utc>,
}
// #[derive(FromRow, Serialize, Deserialize)]
// pub struct AppVersion {
// pub id: i64,
// pub app_id: Uuid,
// pub value: sqlx::types::Json<Box<RawValue>>,
// pub created_by: String,
// pub created_at: chrono::DateTime<chrono::Utc>,
// }
#[derive(Debug, Serialize, Deserialize, FromRow)]
pub struct AppWithLastVersion {
+4 -4
View File
@@ -71,10 +71,10 @@ struct WorkerPing {
wm_memory_usage: Option<i64>,
}
#[derive(Serialize, Deserialize)]
struct EnableWorkerQuery {
disable: bool,
}
// #[derive(Serialize, Deserialize)]
// struct EnableWorkerQuery {
// disable: bool,
// }
#[derive(Deserialize)]
pub struct ListWorkerQuery {
+6 -6
View File
@@ -261,11 +261,11 @@ pub struct WorkspaceSettings {
pub auto_add_instance_groups_roles: Option<serde_json::Value>,
}
#[derive(sqlx::Type, Serialize, Deserialize, Debug)]
#[sqlx(type_name = "WORKSPACE_KEY_KIND", rename_all = "lowercase")]
pub enum WorkspaceKeyKind {
Cloud,
}
// #[derive(sqlx::Type, Serialize, Deserialize, Debug)]
// #[sqlx(type_name = "WORKSPACE_KEY_KIND", rename_all = "lowercase")]
// pub enum WorkspaceKeyKind {
// Cloud,
// }
#[derive(Deserialize)]
struct EditCommandScript {
@@ -2553,7 +2553,7 @@ async fn clone_variables(
source_workspace_id: &str,
target_workspace_id: &str,
) -> Result<()> {
sqlx::query!(
sqlx::query!(
"INSERT INTO variable (workspace_id, path, value, is_secret, description, extra_perms, account, is_oauth, expires_at)
SELECT $2, path, value, is_secret, description, extra_perms, account, is_oauth, expires_at
FROM variable