@overmap-ai/core 1.0.46-project-attachments.5 → 1.0.46-project-attachments.6

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.
@@ -4528,7 +4528,7 @@ var __publicField = (obj, key, value) => {
4528
4528
  const promise = this.enqueueRequest({
4529
4529
  description: "Create attachment",
4530
4530
  method: HttpMethod.POST,
4531
- url: `/components/types/${project}/attach/`,
4531
+ url: `/projects/${project}/attach/`,
4532
4532
  blocks: [offline_id, project.toString()],
4533
4533
  blockers: [file_sha1],
4534
4534
  payload: {
@@ -4605,7 +4605,7 @@ var __publicField = (obj, key, value) => {
4605
4605
  return photoAttachmentPromise(file);
4606
4606
  });
4607
4607
  }
4608
- attachFilesToProjectType(filesToSubmit, projectId) {
4608
+ attachFilesToProject(filesToSubmit, projectId) {
4609
4609
  return filesToSubmit.map((file) => {
4610
4610
  if (!(file instanceof File)) {
4611
4611
  throw new Error("Expected a File instance.");