@overmap-ai/core 1.0.71-fields.10 → 1.0.71-fields.12

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.
@@ -5697,9 +5697,7 @@ class FormService extends BaseUploadService {
5697
5697
  method: HttpMethod.POST,
5698
5698
  url: "/forms/",
5699
5699
  payload: {
5700
- // Sending exactly what is currently needed for the endpoint
5701
- offline_id: offlineForm.offline_id,
5702
- submitted_at: offlineForm.submitted_at,
5700
+ ...offlineForm,
5703
5701
  initial_revision: {
5704
5702
  offline_id: offlineFormRevision.offline_id,
5705
5703
  submitted_at: offlineFormRevision.submitted_at,
@@ -5708,10 +5706,7 @@ class FormService extends BaseUploadService {
5708
5706
  fields: offlineFormRevision.fields
5709
5707
  }
5710
5708
  },
5711
- blockers: [
5712
- ...payload.project ? [payload.project.toString()] : [],
5713
- ...payload.organization ? [payload.organization.toString()] : []
5714
- ],
5709
+ blockers: [],
5715
5710
  blocks: [offlineForm.offline_id, offlineFormRevision.offline_id]
5716
5711
  });
5717
5712
  void formPromise.catch((e) => {
@@ -6665,7 +6660,8 @@ class DocumentAttachmentService extends BaseAttachmentService {
6665
6660
  file_name: offlineAttachment.file_name,
6666
6661
  file_sha1: offlineAttachment.file_sha1,
6667
6662
  file_extension: filePayload.extension,
6668
- description: offlineAttachment.description
6663
+ description: offlineAttachment.description,
6664
+ document: documentId
6669
6665
  });
6670
6666
  sha1ToAttachmentIds[filePayload.sha1].push(offlineAttachment.offline_id);
6671
6667
  }