(isUser, entityId, collaboratorId)
| 78 | } |
| 79 | |
| 80 | async remove(isUser, entityId, collaboratorId) { |
| 81 | const entityIdRoute = this._parentRoutes.delete |
| 82 | const collaboratorIdRoute = isUser |
| 83 | ? 'collaborator_ids.user_ids.user_id' |
| 84 | : 'collaborator_ids.organization_ids.organization_id' |
| 85 | |
| 86 | const result = await this._api.DeleteCollaborator({ |
| 87 | routeParams: { |
| 88 | [entityIdRoute]: entityId, |
| 89 | [collaboratorIdRoute]: collaboratorId, |
| 90 | }, |
| 91 | }) |
| 92 | |
| 93 | return Marshaler.payloadSingleResponse(result) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | export default Collaborators |
no test coverage detected