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

Function removeDbRowOnly

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

Source from the content-addressed store, hash-verified

510
511type LinearUninstallOptions = {
512 getChatSdkAccessToken?: (organizationId: string) => Promise<string | null>;
513 deleteChatSdkInstallation?: (organizationId: string) => Promise<void>;
514 deleteChatSdkIdentityCache?: (organizationId: string) => Promise<void>;
515};
516
517export async function uninstallApp(owner: Owner, options: LinearUninstallOptions = {}) {
518 const integration = await getInstallation(owner);
519
520 if (!integration) {
521 throw new TRPCError({
522 code: 'NOT_FOUND',
523 message: 'Linear installation not found',
524 });
525 }
526
527 const organizationId = integration.platform_installation_id ?? integration.platform_account_id;
528 const isActive = integration.integration_status === INTEGRATION_STATUS.ACTIVE;

Callers

nothing calls this directly

Calls 2

getInstallationFunction · 0.70
deleteMethod · 0.65

Tested by

no test coverage detected