fix: probelma con caricamento allegati nelle note. Il problema non era mai stato risolto da quando si è passati alle apiotrs
This commit is contained in:
+1
-1
@@ -1113,7 +1113,7 @@ router.post('/:id/articles', async (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (attachments && Array.isArray(attachments)) {
|
if (attachments && Array.isArray(attachments)) {
|
||||||
payload.Article.Attachment = attachments.map(att => ({
|
payload.Attachment = attachments.map(att => ({
|
||||||
Content: att.content,
|
Content: att.content,
|
||||||
ContentType: att.content_type || 'application/octet-stream',
|
ContentType: att.content_type || 'application/octet-stream',
|
||||||
Filename: att.filename
|
Filename: att.filename
|
||||||
|
|||||||
Reference in New Issue
Block a user