mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 17:50:13 +00:00
fix(scheduled_tasks): replace broken time parsing code with cron library
This commit is contained in:
parent
8d53021863
commit
31c0253b00
2 changed files with 5 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ pub async fn queue_deleted_image_cleanup(ctx: AppCtx) -> anyhow::Result<()> {
|
|||
.execute(
|
||||
r#"
|
||||
insert into image_cleanup_jobs
|
||||
select id from images where
|
||||
select id, now() from images where
|
||||
not exists (select from image_cleanup_jobs j where j.id = images.id)
|
||||
and not exists (select from systems where avatar_url = images.url)
|
||||
and not exists (select from systems where banner_image = images.url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue