Merge pull request #1057 from ONLYOFFICE/bugfix/fix-unarchive-action

Web:Common:Api: fix request body for unarchive
This commit is contained in:
Nikita Gopienko 2022-11-18 14:56:45 +03:00 committed by GitHub
commit 0230776f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,8 +159,8 @@ export function archiveRoom(id, deleteAfter = false) {
});
}
export function unarchiveRoom(id, deleteAfter = true) {
const data = { deleteAfter };
export function unarchiveRoom(id) {
const data = { deleteAfter: false };
const options = {
method: "put",
url: `/files/rooms/${id}/unarchive`,