최근 검색


최근 검색 없음

client.invoke("ticket.collaborators.remove") not removing collaborators

답변함


2023년 5월 31일에 게시됨

for some reason, the ticket.collaborators.remove does not work, the adding works fine. No errors in console, verified to happen with latest mozilla, chrome and edge browsers. The id's are 100% correct.

Any idea why this is the case?

         installationNeedChanged() {

          if (!this.installOrderOptions || this.installOrderOptions.noDevices) {
              // THIS DOES NOT WORK (Console logs the removing collaborators, and no erros but the collaborators are not removed)
              console.log('removing collaborators');
              this._client.invoke("ticket.collaborators.remove", { "id": "367232408557" });
                this._client.invoke("ticket.collaborators.remove", { "id": "367232408417" });

          } else {
              // THIS WORKS correctly
              console.log('adding collaborators');
              this._client.invoke("ticket.collaborators.add", { "id": "367232408557" });
              this._client.invoke("ticket.collaborators.add", { "id": "367232408417" });
          }
        },

0

2

댓글 2개

Hi,

On my phone so untested (sorry), but might be worth trying with the ids as integers (not in quotes)? That might be the expected format from the docs.

Cheryl

1


Duh what a stupid mistake! That fixed the issue. Funny that the adding worked even if the data was given as a string tho!

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물