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

Function getGroupTypes

packages/db/src/services/group.service.ts:173–181  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

171}
172
173export async function getGroupTypes(projectId: string): Promise<string[]> {
174 const rows = await chQuery<{ type: string }>(`
175 SELECT DISTINCT type
176 FROM ${TABLE_NAMES.groups} FINAL
177 WHERE project_id = ${sqlstring.escape(projectId)}
178 AND deleted = 0
179 `);
180 return rows.map((r) => r.type);
181}
182
183export async function createGroup(input: IServiceUpsertGroup) {
184 await upsertGroup(input);

Callers 3

registerGroupToolsFunction · 0.90
group.tsFile · 0.90
listGroupTypesCoreFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected