fix build

This commit is contained in:
Ruben Fiszel
2024-05-25 09:53:51 +02:00
parent 831cf89b63
commit ee22ec5fd1
2 changed files with 1 additions and 34 deletions
+1 -28
View File
@@ -15,37 +15,10 @@ use windmill_common::{
use crate::{ActionKind, AuditLog, ListAuditLogQuery};
use sqlx::{Postgres, Transaction};
#[derive(Clone)]
pub struct AuditAuthor {
pub username: String,
pub email: String,
pub username_override: Option<String>,
}
impl AuditAuthorable for AuditAuthor {
fn email(&self) -> &str {
&self.email
}
fn username(&self) -> &str {
&self.username
}
fn username_override(&self) -> Option<&str> {
self.username_override.as_deref()
}
}
pub trait AuditAuthorable {
fn username(&self) -> &str;
fn email(&self) -> &str;
fn username_override(&self) -> Option<&str>;
}
#[tracing::instrument(level = "trace", skip_all)]
pub async fn audit_log<'c, E: sqlx::Executor<'c, Database = Postgres>>(
_db: E,
_authorable: &impl AuditAuthorable,
_username: &str,
mut _operation: &str,
_action_kind: ActionKind,
_w_id: &str,
-6
View File
@@ -3,9 +3,6 @@ use serde::Deserialize;
use std::sync::Arc;
use tokio::sync::RwLock;
#[cfg(feature = "enterprise")]
use crate::DB;
lazy_static::lazy_static! {
pub static ref LICENSE_KEY_VALID: Arc<RwLock<bool>> = Arc::new(RwLock::new(true));
pub static ref LICENSE_KEY_ID: Arc<RwLock<String>> = Arc::new(RwLock::new("".to_string()));
@@ -28,6 +25,3 @@ pub async fn get_license_plan() -> LicensePlan {
pub enum CriticalErrorChannel {}
pub async fn trigger_critical_error_channels(_error_message: String) {}
#[cfg(feature = "enterprise")]
pub async fn schedule_key_renewal(_http_client: &reqwest::Client, _db: &DB) {}