@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.
@@ -4538,7 +4538,7 @@ class AttachmentService extends BaseApiService {
4538
4538
  const promise = this.enqueueRequest({
4539
4539
  description: "Create attachment",
4540
4540
  method: HttpMethod.POST,
4541
- url: `/components/types/${project}/attach/`,
4541
+ url: `/projects/${project}/attach/`,
4542
4542
  blocks: [offline_id, project.toString()],
4543
4543
  blockers: [file_sha1],
4544
4544
  payload: {
@@ -4615,7 +4615,7 @@ class AttachmentService extends BaseApiService {
4615
4615
  return photoAttachmentPromise(file);
4616
4616
  });
4617
4617
  }
4618
- attachFilesToProjectType(filesToSubmit, projectId) {
4618
+ attachFilesToProject(filesToSubmit, projectId) {
4619
4619
  return filesToSubmit.map((file) => {
4620
4620
  if (!(file instanceof File)) {
4621
4621
  throw new Error("Expected a File instance.");