MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / setGroup

Method setGroup

packages/sdks/sdk/src/index.ts:203–215  ·  view source on GitHub ↗
(groupId: string)

Source from the content-addressed store, hash-verified

201 }
202
203 setGroup(groupId: string) {
204 this.log('set group', groupId);
205 if (!this.groups.includes(groupId)) {
206 this.groups = [...this.groups, groupId];
207 }
208 return this.send({
209 type: 'assign_group',
210 payload: {
211 groupIds: [groupId],
212 profileId: this.profileId,
213 },
214 });
215 }
216
217 setGroups(groupIds: string[]) {
218 this.log('set groups', groupIds);

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
sendMethod · 0.95

Tested by

no test coverage detected