mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 00:47:53 +00:00
query fix
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user