MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getInstallation

Function getInstallation

apps/web/src/lib/integrations/linear-service.ts:246–256  ·  view source on GitHub ↗
(owner: Owner)

Source from the content-addressed store, hash-verified

244
245export async function getInstallation(
246 owner: Owner,
247 database: typeof db | DrizzleTransaction = db
248): Promise<PlatformIntegration | null> {
249 const [integration] = await database
250 .select()
251 .from(platform_integrations)
252 .where(
253 and(...getOwnershipConditions(owner), eq(platform_integrations.platform, PLATFORM.LINEAR))
254 )
255 .limit(1);
256
257 return integration || null;
258}
259

Callers 5

upsertLinearInstallationFunction · 0.70
uninstallAppFunction · 0.70
removeDbRowOnlyFunction · 0.70
updateModelFunction · 0.70
getModelFunction · 0.70

Calls 2

getOwnershipConditionsFunction · 0.70
limitMethod · 0.65

Tested by

no test coverage detected