mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 03:11:32 +00:00
cleanup
This commit is contained in:
parent
1b75fb2d71
commit
53e6c3daa7
2 changed files with 5 additions and 9 deletions
|
@ -178,7 +178,7 @@ steps:
|
||||||
CARGO_HOME: .cargo_home
|
CARGO_HOME: .cargo_home
|
||||||
commands:
|
commands:
|
||||||
- cargo build
|
- cargo build
|
||||||
- cp target/debug/lemmy_server target/lemmy_server
|
- mv target/debug/lemmy_server target/lemmy_server
|
||||||
when: *slow_check_paths
|
when: *slow_check_paths
|
||||||
|
|
||||||
check_diesel_migration:
|
check_diesel_migration:
|
||||||
|
|
|
@ -285,8 +285,7 @@ async fn delete_expired_captcha_answers(pool: &mut DbPool<'_>) -> LemmyResult<()
|
||||||
captcha_answer::table.filter(captcha_answer::published.lt(now() - IntervalDsl::minutes(10))),
|
captcha_answer::table.filter(captcha_answer::published.lt(now() - IntervalDsl::minutes(10))),
|
||||||
)
|
)
|
||||||
.execute(&mut conn)
|
.execute(&mut conn)
|
||||||
.await
|
.await?;
|
||||||
.map(|_| {})?;
|
|
||||||
info!("Done.");
|
info!("Done.");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -313,11 +312,8 @@ async fn clear_old_activities(pool: &mut DbPool<'_>) -> LemmyResult<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn delete_old_denied_users(pool: &mut DbPool<'_>) -> LemmyResult<()> {
|
async fn delete_old_denied_users(pool: &mut DbPool<'_>) -> LemmyResult<()> {
|
||||||
LocalUser::delete_old_denied_local_users(pool)
|
LocalUser::delete_old_denied_local_users(pool).await?;
|
||||||
.await
|
|
||||||
.map(|_| {
|
|
||||||
info!("Done.");
|
info!("Done.");
|
||||||
})?;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -583,7 +579,7 @@ mod tests {
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[serial]
|
#[serial]
|
||||||
async fn test_scheduled_tasks() -> LemmyResult<()> {
|
async fn test_scheduled_tasks_no_errors() -> LemmyResult<()> {
|
||||||
let context = test_context().await;
|
let context = test_context().await;
|
||||||
|
|
||||||
startup_jobs(&mut context.pool()).await?;
|
startup_jobs(&mut context.pool()).await?;
|
||||||
|
|
Loading…
Reference in a new issue