mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 19:15:39 +00:00
feat: delete analytics when webmaster updates publishing status
This commit is contained in:
@@ -283,6 +283,12 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
|
||||
&self,
|
||||
psuedo_id: &str,
|
||||
) -> DBResult<String>;
|
||||
|
||||
/// Delete all records for campaign
|
||||
async fn analytics_delete_all_records_for_campaign(
|
||||
&self,
|
||||
campaign_id: &str,
|
||||
) -> DBResult<()>;
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq)]
|
||||
@@ -389,7 +395,6 @@ pub struct Secret {
|
||||
/// user's secret
|
||||
pub secret: String,
|
||||
}
|
||||
|
||||
/// Trait to clone MCDatabase
|
||||
pub trait CloneSPDatabase {
|
||||
/// clone DB
|
||||
|
||||
Reference in New Issue
Block a user