MCPcopy
hub / github.com/CapSoftware/Cap / getObjectRecord

Function getObjectRecord

packages/web-backend/src/Storage/index.ts:348–349  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

346 const tokenStore = makeGoogleDriveTokenStore(repo, integration);
347
348 const getObjectRecord = (key: string) =>
349 mapStorageError(requireDriveObject(repo, integrationId, key));
350 const recoverDriveFileId = (
351 key: string,
352 previous: typeof Db.storageObjects.$inferSelect,

Callers 1

makeGoogleDriveAccessFunction · 0.85

Calls 2

mapStorageErrorFunction · 0.85
requireDriveObjectFunction · 0.85

Tested by

no test coverage detected