MCPcopy Index your code
hub / github.com/CapSoftware/Cap / parseDriveConfig

Function parseDriveConfig

apps/web/actions/organization/storage.ts:139–144  ·  view source on GitHub ↗
(
	integration: typeof storageIntegrations.$inferSelect,
)

Source from the content-addressed store, hash-verified

137});
138
139const parseDriveConfig = async (
140 integration: typeof storageIntegrations.$inferSelect,
141) =>
142 JSON.parse(
143 await decrypt(integration.encryptedConfig),
144 ) as GoogleDriveIntegrationConfig;
145
146const hasDriveLocation = (config: GoogleDriveIntegrationConfig) =>
147 config.folderId.trim().length > 0;

Calls 1

decryptFunction · 0.90

Tested by

no test coverage detected