Skip to content

Commit

Permalink
Post-meeting endpoint tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaley committed Nov 7, 2023
1 parent 0864095 commit ac50368
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions web/app/components/project/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export default class ProjectIndexComponent extends Component<ProjectIndexCompone
} else {
this.addLink(resource);
}
void this.save.perform();
}

/**
Expand All @@ -164,7 +163,6 @@ export default class ProjectIndexComponent extends Component<ProjectIndexCompone
} else {
this.externalLinks.removeObject(doc);
}
void this.save.perform();
}

/**
Expand Down Expand Up @@ -341,13 +339,16 @@ export default class ProjectIndexComponent extends Component<ProjectIndexCompone
}

try {
await this.fetchSvc.fetch(`/api/v1/projects/${this.args.project.id}`, {
method: "PUT",
body: JSON.stringify(this.formattedRelatedResources),
headers: {
"Content-Type": "application/json",
await this.fetchSvc.fetch(
`/api/v1/projects/${this.args.project.id}/related-resources`,
{
method: "PUT",
body: JSON.stringify(this.formattedRelatedResources),
headers: {
"Content-Type": "application/json",
},
},
});
);
} catch (e: unknown) {
this.externalLinks = cachedLinks;
this.hermesDocuments = cachedDocuments;
Expand Down

0 comments on commit ac50368

Please sign in to comment.