Skip to content

Commit

Permalink
Fixes changeRevisionControl function
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Dec 13, 2023
1 parent 8b3061b commit 6ba9ebc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ export async function changeAccess(ids, access) {

export async function changeRevisionControl(ids, revision_control) {
// Enable or disable revision control on specified documents
console.log("changeRevisionControl", ids, revision_control);
await session.patch(
apiUrl(`documents/`),
ids.map((id) => {
id, revision_control;
}),
ids.map((id) => ({
id,
revision_control,
})),
);
}

Expand Down

0 comments on commit 6ba9ebc

Please sign in to comment.