Merge ec9d0b2958
into b573e9cb2b
This commit is contained in:
commit
94dadf78c3
|
@ -360,7 +360,7 @@ export async function coreOutputProcessing(
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const process = async (attachment: RowAttachment) => {
|
const process = async (attachment: RowAttachment) => {
|
||||||
if (!attachment.url && attachment.key) {
|
if (attachment.key) {
|
||||||
attachment.url = await objectStore.getAppFileUrl(attachment.key)
|
attachment.url = await objectStore.getAppFileUrl(attachment.key)
|
||||||
}
|
}
|
||||||
return attachment
|
return attachment
|
||||||
|
|
|
@ -177,10 +177,6 @@ describe("rowProcessor - outputProcessing", () => {
|
||||||
expect(output2.attach[0].url?.split("?")[0]).toBe(
|
expect(output2.attach[0].url?.split("?")[0]).toBe(
|
||||||
"/files/signed/prod-budi-app-assets/test.jpg"
|
"/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(
|
expect(output2.attach?.url?.split("?")[0]).toBe(
|
||||||
"/files/signed/prod-budi-app-assets/test.jpg"
|
"/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")
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue