feat: delete analytics when webmaster updates publishing status

This commit is contained in:
Aravinth Manivannan
2023-06-30 03:16:43 +05:30
parent 68b59ade8c
commit 679a35216c
6 changed files with 130 additions and 2 deletions

View File

@@ -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