@overmap-ai/core 1.0.50-bulk-form-submission.0 → 1.0.50-bulk-form-submission.2

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.
@@ -4798,15 +4798,16 @@ var __publicField = (obj, key, value) => {
4798
4798
  class AttachmentService extends BaseApiService {
4799
4799
  processPresignedUrls(presignedUrls) {
4800
4800
  for (const [sha1, presignedUrl] of Object.entries(presignedUrls)) {
4801
+ console.debug(sha1, presignedUrl);
4801
4802
  void this.enqueueRequest({
4802
4803
  url: presignedUrl.url,
4803
- description: "Upload file",
4804
+ description: "Upload file to S3",
4804
4805
  method: HttpMethod.POST,
4805
4806
  isExternalUrl: true,
4806
4807
  isAuthNeeded: false,
4807
4808
  attachmentHash: sha1,
4808
4809
  // TODO: can we use the sha1 as the blocker?
4809
- blockers: [`s3-${sha1}`],
4810
+ blockers: [`s3-${presignedUrl.fields.key}`],
4810
4811
  blocks: [sha1],
4811
4812
  s3url: presignedUrl
4812
4813
  });