From b8fa514e3b298a73146efbb2c27c2db4a9ea813f Mon Sep 17 00:00:00 2001 From: robbond Date: Fri, 13 Mar 2026 14:12:36 +0000 Subject: [PATCH] Align getrepsblob guard with route contract and fix quill utils import --- components/elements/index.js | 6 +++++- pages/api/file/getrepsblob.js | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/elements/index.js b/components/elements/index.js index 5e5d10ad..ebe58c29 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -20,7 +20,11 @@ import fieldLookup from "../../data/crmfieldlookuptranslations.json"; import pickListLookup from "../../data/picklistLookups.json"; import dynamic from "next/dynamic"; -import { bytesToSize, getThumbnailIconByExtension } from "../utils"; +import { + bytesToSize, + getThumbnailIconByExtension, + updateLinks +} from "../utils"; import { setFileCount } from "../../store/appealType/action"; import { diff --git a/pages/api/file/getrepsblob.js b/pages/api/file/getrepsblob.js index 2a9116e7..a7177949 100644 --- a/pages/api/file/getrepsblob.js +++ b/pages/api/file/getrepsblob.js @@ -51,8 +51,6 @@ ApiProxy.get(async (req, res) => { if ( typeof containerName === "undefined" || containerName.length === 0 || - typeof casefolderID === "undefined" || - casefolderID.length === 0 || typeof checkHash === "undefined" || checkHash.length === 0 ) { @@ -66,7 +64,7 @@ ApiProxy.get(async (req, res) => { } if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) { - const blobObj = await getRepsBlobs(containerName, casefolderID) + const blobObj = await getRepsBlobs(containerName) .then(async (data) => { return data; })