@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.
|
@@ -3879,6 +3879,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3879
3879
|
throw new Error(`Attachment ${attachmentId} not found`);
|
|
3880
3880
|
let oldFile = void 0;
|
|
3881
3881
|
const newSha1 = await hashFile(newFile);
|
|
3882
|
+
console.log(attachment, newFile);
|
|
3882
3883
|
const performRequest2 = async () => {
|
|
3883
3884
|
oldFile = await this.client.files.fetchCache(attachment.file_sha1);
|
|
3884
3885
|
if (!oldFile) {
|
|
@@ -3893,6 +3894,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3893
3894
|
store.dispatch(updateAttachment(attachment));
|
|
3894
3895
|
throw e;
|
|
3895
3896
|
});
|
|
3897
|
+
console.log(fileProps);
|
|
3896
3898
|
const promise2 = this.enqueueRequest({
|
|
3897
3899
|
description: "Edit attachment",
|
|
3898
3900
|
method: HttpMethod.PATCH,
|
|
@@ -3924,6 +3926,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3924
3926
|
file_sha1: newSha1,
|
|
3925
3927
|
file: URL.createObjectURL(newFile)
|
|
3926
3928
|
};
|
|
3929
|
+
console.log(offlineAttachment);
|
|
3927
3930
|
const promise = performRequest2();
|
|
3928
3931
|
return [offlineAttachment, promise];
|
|
3929
3932
|
}
|