mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:17:08 +00:00
@@ -24,7 +24,6 @@ async function getSequences (client, sequenceId) {
|
||||
FROM raw_lines
|
||||
WHERE
|
||||
($1::numeric IS NULL OR sequence = $1)
|
||||
AND meta ? 'qc'
|
||||
ORDER BY sequence;
|
||||
`;
|
||||
|
||||
@@ -48,7 +47,7 @@ function makeTree (leaf, sequences, shots) {
|
||||
const leafSequences = sequences.map(seq => {
|
||||
const sequenceShots = shots.filter(pnt => pnt.sequence == seq.sequence && pnt.meta.qc_id == leaf.id);
|
||||
|
||||
if (seq.meta?.qc[leaf.id] || sequenceShots.length) {
|
||||
if (seq.meta?.qc?.[leaf.id] || sequenceShots.length) {
|
||||
const sequence = {...seq};
|
||||
sequence.shots = sequenceShots;
|
||||
return sequence;
|
||||
@@ -75,7 +74,7 @@ async function get (projectId, sequenceId, opts = {}) {
|
||||
|
||||
if (opts.flat) {
|
||||
res = {
|
||||
sequences,
|
||||
sequences: sequences.filter(i => i.meta?.qc),
|
||||
shots
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user