AI Scanning
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ get '/api/v1/task/:task' => sub {
|
||||
|
||||
get '/api/v1/nexttask/:type' => sub {
|
||||
my $type = route_parameters->get("type");
|
||||
my $sth = database->prepare("SELECT * FROM tasks WHERE task_type=? AND status='PENDING' ORDER BY id LIMIT 1");
|
||||
my $sth = database->prepare("SELECT * FROM tasks WHERE task_type=? AND status='PENDING' ORDER BY updated_at ASC LIMIT 1");
|
||||
$sth->execute($type);
|
||||
my $ref = $sth->fetchrow_hashref();
|
||||
$sth->finish();
|
||||
|
||||
Reference in New Issue
Block a user