MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / isValidContactPlatformId

Function isValidContactPlatformId

packages/core/src/query/contact-queries.ts:66–68  ·  view source on GitHub ↗
(platformId: string | null | undefined)

Source from the content-addressed store, hash-verified

64}
65
66export function isValidContactPlatformId(platformId: string | null | undefined): platformId is string {
67 return typeof platformId === 'string' && platformId.trim().length > 0
68}
69
70export function resolveOwnerMember(db: DatabaseAdapter): ContactMemberRef | null {
71 const meta = db.prepare('SELECT owner_id FROM meta LIMIT 1').get() as { owner_id: string | null } | undefined

Callers 2

resolveOwnerMemberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected