forked from Yara724/api
invalid image formats after two retries skips
This commit is contained in:
@@ -42,9 +42,12 @@ export function fanavaranAttachmentStatus(
|
||||
const latest = new Map(
|
||||
attempts.map((attempt) => [attempt.fileName, attempt]),
|
||||
);
|
||||
// Skipped (including format-waived) files are intentional omissions, not blockers.
|
||||
const outstanding = [...latest.values()].filter(
|
||||
(attempt) =>
|
||||
!uploadedNames.has(attempt.fileName) && attempt.status !== "success",
|
||||
!uploadedNames.has(attempt.fileName) &&
|
||||
attempt.status !== "success" &&
|
||||
attempt.status !== "skipped",
|
||||
);
|
||||
const lastProblem = outstanding.at(-1);
|
||||
const status = lastProblem
|
||||
|
||||
Reference in New Issue
Block a user