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 ?"
|
"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);
|
$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();
|
$sth->finish();
|
||||||
|
|
||||||
# Total count for pagination metadata
|
# Total count for pagination metadata
|
||||||
|
|||||||
+1
-1
@@ -36,7 +36,7 @@ services:
|
|||||||
- API_BASE=http://10.0.1.34:3000/api/v1
|
- API_BASE=http://10.0.1.34:3000/api/v1
|
||||||
volumes:
|
volumes:
|
||||||
- ./ui:/app
|
- ./ui:/app
|
||||||
- nas_input:/data/input:ro
|
- nas_input:/data:ro
|
||||||
networks:
|
networks:
|
||||||
- videodetect-network
|
- videodetect-network
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user