Skip to content

Commit 3587146

Browse files
author
Your Name
committed
.
1 parent 5c51b45 commit 3587146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/japiupdate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub async fn japi_updater(ctx: &serenity::all::Context) -> Result<(), crate::Err
8686
let pool = &data.pool;
8787

8888
let bots_to_update = sqlx::query!(
89-
"SELECT bot_id FROM bots WHERE type = 'approved' OR type = 'certified' AND NOW() - last_stats_post > INTERVAL '2 weeks' AND NOW() - last_japi_update > INTERVAL '2 weeks' ORDER BY RANDOM() LIMIT 2"
89+
"SELECT bot_id FROM bots WHERE (type = 'approved' OR type = 'certified') AND NOW() - last_stats_post > INTERVAL '2 weeks' AND NOW() - last_japi_update > INTERVAL '2 weeks' ORDER BY RANDOM() LIMIT 2"
9090
)
9191
.fetch_all(pool)
9292
.await?;

0 commit comments

Comments
 (0)