Skip to content

Commit

Permalink
feat(services/misc): do not create on hold notifications if not pro
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Jan 22, 2025
1 parent 40546ad commit 661bc54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/services/miscellaneous/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2765,6 +2765,9 @@ ORDER BY RANDOM() LIMIT 10;
}

async fn queue_notifications_for_outdated_seen_entries(&self) -> Result<()> {
if !self.0.is_server_key_validated().await? {
return Ok(());
}
let threshold = Utc::now() - Duration::days(7);
for state in [SeenState::InProgress, SeenState::OnAHold] {
let seen_items = Seen::find()
Expand Down

0 comments on commit 661bc54

Please sign in to comment.