MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / remove

Method remove

sdk/js/src/service/collaborators.js:80–94  ·  view source on GitHub ↗
(isUser, entityId, collaboratorId)

Source from the content-addressed store, hash-verified

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
97export default Collaborators

Callers 10

mainFunction · 0.80
useBreadcrumbsFunction · 0.80
SidebarContextProviderFunction · 0.80
index.jsFile · 0.80
clearFunction · 0.80
downloadDataUriAsFileFunction · 0.80
collaborators.jsFile · 0.80
use-root-class.jsFile · 0.80
removeCollaboratorFunction · 0.80
toggleThemeFunction · 0.80

Calls 2

payloadSingleResponseMethod · 0.80
DeleteCollaboratorMethod · 0.65

Tested by

no test coverage detected