@overmap-ai/core 1.0.34 → 1.0.35-debug-file.0

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.
@@ -3883,6 +3883,7 @@ class AttachmentService extends BaseApiService {
3883
3883
  throw new Error(`Attachment ${attachmentId} not found`);
3884
3884
  let oldFile = void 0;
3885
3885
  const newSha1 = await hashFile(newFile);
3886
+ console.log(attachment, newFile);
3886
3887
  const performRequest2 = async () => {
3887
3888
  oldFile = await this.client.files.fetchCache(attachment.file_sha1);
3888
3889
  if (!oldFile) {
@@ -3897,6 +3898,7 @@ class AttachmentService extends BaseApiService {
3897
3898
  store.dispatch(updateAttachment(attachment));
3898
3899
  throw e;
3899
3900
  });
3901
+ console.log(fileProps);
3900
3902
  const promise2 = this.enqueueRequest({
3901
3903
  description: "Edit attachment",
3902
3904
  method: HttpMethod.PATCH,
@@ -3928,6 +3930,7 @@ class AttachmentService extends BaseApiService {
3928
3930
  file_sha1: newSha1,
3929
3931
  file: URL.createObjectURL(newFile)
3930
3932
  };
3933
+ console.log(offlineAttachment);
3931
3934
  const promise = performRequest2();
3932
3935
  return [offlineAttachment, promise];
3933
3936
  }