Skip to content

Commit

Permalink
Merge pull request #41 from BaseAdresseNationale/antoineludeau/fix-bo…
Browse files Browse the repository at this point in the history
…dy-delete-common-toponyms

Fix common toponyms delete fetch body
  • Loading branch information
antoineludeau authored Sep 4, 2023
2 parents 6ddd02c + d1705bf commit d65a97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ban-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const updateCommonToponyms = async (

export const deleteCommonToponyms = async (ids: BanCommonTopoID[]) => {
try {
const body = JSON.stringify({ ids });
const body = JSON.stringify(ids);
const response = await fetch(`${BAN_API_URL}/common-toponym/delete`, {
method: "POST",
headers: defaultHeader,
Expand Down

0 comments on commit d65a97b

Please sign in to comment.