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

Function getGroupPropertyKeys

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

Source from the content-addressed store, hash-verified

233}
234
235export async function getGroupPropertyKeys(
236 projectId: string
237): Promise<string[]> {
238 const rows = await chQuery<{ key: string }>(`
239 SELECT DISTINCT arrayJoin(mapKeys(properties)) as key
240 FROM ${TABLE_NAMES.groups} FINAL
241 WHERE project_id = ${sqlstring.escape(projectId)}
242 AND deleted = 0
243 `);
244 return rows.map((r) => r.key).sort();
245}
246
247export type IServiceGroupStats = {
248 groupId: string;

Callers 1

group.tsFile · 0.90

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected