Fix path
This commit is contained in:
+4
-1
@@ -98,7 +98,10 @@ get '/api/v1/tasks' => sub {
|
||||
"SELECT id, video_id, task_type AS type, status FROM tasks WHERE status=? AND task_type=? ORDER BY id LIMIT ? OFFSET ?"
|
||||
);
|
||||
$sth->execute($status, $type, $per_page, $offset);
|
||||
my $ref = $sth->fetchall_hashref('id');
|
||||
my $ref = [];
|
||||
while(my $row = $sth->fetchrow_hashref()) {
|
||||
push @$ref, $row;
|
||||
}
|
||||
$sth->finish();
|
||||
|
||||
# Total count for pagination metadata
|
||||
|
||||
Reference in New Issue
Block a user