@overmap-ai/core 1.0.63-form-submission-fix.1 → 1.0.63-form-submission-fix.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/overmap-core.js
CHANGED
|
@@ -5535,6 +5535,7 @@ class FormService extends BaseUploadService {
|
|
|
5535
5535
|
const attachmentPayload = {
|
|
5536
5536
|
offline_id: offlineFormRevisionAttachment.offline_id,
|
|
5537
5537
|
name: file.name,
|
|
5538
|
+
field_identifier: fieldIdentifier,
|
|
5538
5539
|
sha1
|
|
5539
5540
|
};
|
|
5540
5541
|
attachmentPayloads.push(attachmentPayload);
|
|
@@ -5546,7 +5547,8 @@ class FormService extends BaseUploadService {
|
|
|
5546
5547
|
url: `/forms/revisions/${revisionId}/attachments/bulk/`,
|
|
5547
5548
|
payload: {
|
|
5548
5549
|
submitted_at: submittedAt,
|
|
5549
|
-
attachments: attachmentPayloads
|
|
5550
|
+
attachments: attachmentPayloads,
|
|
5551
|
+
files: Object.values(filePayloads)
|
|
5550
5552
|
},
|
|
5551
5553
|
blockers: [revisionId],
|
|
5552
5554
|
blocks: offlineFormRevisionAttachments.map((attachment) => attachment.offline_id)
|
|
@@ -5889,7 +5891,8 @@ class FormSubmissionService extends BaseUploadService {
|
|
|
5889
5891
|
const attachmentPayload = {
|
|
5890
5892
|
offline_id: offlineFormSubmissionAttachment.offline_id,
|
|
5891
5893
|
name: file.name,
|
|
5892
|
-
sha1
|
|
5894
|
+
sha1,
|
|
5895
|
+
field_identifier: fieldIdentifier
|
|
5893
5896
|
};
|
|
5894
5897
|
attachmentPayloads.push(attachmentPayload);
|
|
5895
5898
|
}
|
|
@@ -5901,7 +5904,8 @@ class FormSubmissionService extends BaseUploadService {
|
|
|
5901
5904
|
url: `/forms/submissions/${submissionId}/attachments/bulk/`,
|
|
5902
5905
|
payload: {
|
|
5903
5906
|
submitted_at: submittedAt,
|
|
5904
|
-
attachments: attachmentPayloads
|
|
5907
|
+
attachments: attachmentPayloads,
|
|
5908
|
+
files: Object.values(filePayloads)
|
|
5905
5909
|
},
|
|
5906
5910
|
blockers: [submissionId],
|
|
5907
5911
|
blocks: offlineFormSubmissionAttachments.map((attachment) => attachment.offline_id)
|