query fix

This commit is contained in:
Brandon Thomas committed 2024-04-23 21:51:16 -04:00
1 parent 8381c352f7
commit cb3e76239e
1 file changed
+1 -1
@@ -126,7 +126,7 @@ pub async fn list_session_jobs_from_connection(
query_builder.push_bind(args.user_token.to_string());
// NB: `created_at` doesn't have an index, but `maybe_creator_user_token` does.
query_builder.push(" AND created_at > DATE_SUB(NOW(), INTERVAL 36 HOUR) ");
query_builder.push(" AND jobs.created_at > DATE_SUB(NOW(), INTERVAL 36 HOUR) ");
if let Some(statuses) = args.maybe_include_job_statuses {
if !statuses.is_empty() {