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

Function makeProfile

packages/db/src/buffers/profile-buffer.test.ts:21–37  ·  view source on GitHub ↗
(overrides: Partial<IClickhouseProfile>)

Source from the content-addressed store, hash-verified

19const redis = getRedisCache();
20
21function makeProfile(overrides: Partial<IClickhouseProfile>): IClickhouseProfile {
22 const now = new Date().toISOString();
23 return {
24 id: 'profile-1',
25 project_id: 'project-1',
26 first_name: '',
27 last_name: '',
28 email: '',
29 avatar: '',
30 properties: {},
31 is_external: true,
32 created_at: now,
33 last_seen_at: now,
34 groups: [],
35 ...overrides,
36 };
37}
38
39beforeEach(async () => {
40 const keys = [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected