diff --git a/packages/server/src/utilities/rowProcessor/index.ts b/packages/server/src/utilities/rowProcessor/index.ts index 76b873866f..1f0044d5f7 100644 --- a/packages/server/src/utilities/rowProcessor/index.ts +++ b/packages/server/src/utilities/rowProcessor/index.ts @@ -360,7 +360,7 @@ export async function coreOutputProcessing( continue } const process = async (attachment: RowAttachment) => { - if (!attachment.url && attachment.key) { + if (attachment.key) { attachment.url = await objectStore.getAppFileUrl(attachment.key) } return attachment diff --git a/packages/server/src/utilities/rowProcessor/tests/outputProcessing.spec.ts b/packages/server/src/utilities/rowProcessor/tests/outputProcessing.spec.ts index cd375ecb23..0d262ea8ea 100644 --- a/packages/server/src/utilities/rowProcessor/tests/outputProcessing.spec.ts +++ b/packages/server/src/utilities/rowProcessor/tests/outputProcessing.spec.ts @@ -177,10 +177,6 @@ describe("rowProcessor - outputProcessing", () => { expect(output2.attach[0].url?.split("?")[0]).toBe( "/files/signed/prod-budi-app-assets/test.jpg" ) - - row.attach[0].url = "aaaa" - const output3 = await outputProcessing(table, row, { squash: false }) - expect(output3.attach[0].url).toBe("aaaa") }) }) @@ -220,10 +216,6 @@ describe("rowProcessor - outputProcessing", () => { expect(output2.attach?.url?.split("?")[0]).toBe( "/files/signed/prod-budi-app-assets/test.jpg" ) - - row.attach.url = "aaaa" - const output3 = await outputProcessing(table, row, { squash: false }) - expect(output3.attach.url).toBe("aaaa") }) })