We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6b1b3 commit fd03865Copy full SHA for fd03865
src/worker/jobs/expiry_notification.rs
@@ -25,13 +25,13 @@ impl BackgroundJob for ExpiryNotification {
25
#[instrument(skip(env), err)]
26
async fn run(&self, env: Self::Context) -> anyhow::Result<()> {
27
let mut conn = env.connection_pool.get()?;
28
- // Check if the token is expired
29
- // If the token is expired, trigger a notification
+ // Check if the token is about to expire
+ // If the token is about to expire, trigger a notification
30
check(&env.emails, &mut conn)
31
}
32
33
34
-// Check if the token is expired and trigger a notification if it is.
+// Check if the token is about to expire and send a notification if it is.
35
fn check(emails: &Emails, conn: &mut PgConnection) -> anyhow::Result<()> {
36
info!("Checking if tokens are expired");
37
let expired_tokens =
0 commit comments