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

Function deleteGroup

packages/db/src/services/group.service.ts:216–233  ·  view source on GitHub ↗
(id: string, projectId: string)

Source from the content-addressed store, hash-verified

214}
215
216export async function deleteGroup(id: string, projectId: string) {
217 const existing = await getGroupById(id, projectId);
218 if (!existing) {
219 throw new Error(`Group ${id} not found`);
220 }
221 await writeGroupToCh(
222 {
223 id,
224 projectId,
225 type: existing.type,
226 name: existing.name,
227 properties: existing.properties as Record<string, string>,
228 createdAt: existing.createdAt,
229 },
230 1
231 );
232 return existing;
233}
234
235export async function getGroupPropertyKeys(
236 projectId: string

Callers 1

group.tsFile · 0.90

Calls 2

getGroupByIdFunction · 0.85
writeGroupToChFunction · 0.85

Tested by

no test coverage detected