This commit is contained in:
Peter Clement 2025-05-19 09:08:27 +01:00 committed by GitHub
commit 94dadf78c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 9 deletions

View File

@ -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

View File

@ -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")
})
})