This commit is contained in:
Ryan Shpeherd
2026-09-15 12:58:16 -04:00
parent 1611485a66
commit 4782dc5bfa
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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
+1 -1
View File
@@ -36,7 +36,7 @@ services:
- API_BASE=http://10.0.1.34:3000/api/v1
volumes:
- ./ui:/app
- nas_input:/data/input:ro
- nas_input:/data:ro
networks:
- videodetect-network
depends_on: