diff --git a/packages/upload-api/src/store/add.js b/packages/upload-api/src/store/add.js index 07e482dda..76a2dbeba 100644 --- a/packages/upload-api/src/store/add.js +++ b/packages/upload-api/src/store/add.js @@ -23,7 +23,7 @@ export function storeAddProvider(context) { const space = /** @type {import('@ucanto/interface').DIDKey} */ ( Server.DID.parse(capability.with).did() ) - const issuer = invocation.issuer.did() + const [allocated, carExists] = await Promise.all([ allocate( { @@ -47,7 +47,6 @@ export function storeAddProvider(context) { link, size, origin, - issuer, invocation: invocation.cid, }) if (res.error) { diff --git a/packages/upload-api/src/types.ts b/packages/upload-api/src/types.ts index 789be64e1..e0bf88af6 100644 --- a/packages/upload-api/src/types.ts +++ b/packages/upload-api/src/types.ts @@ -515,7 +515,12 @@ export interface StoreAddInput { link: UnknownLink size: number origin?: UnknownLink - issuer: DID + + /** + * @deprecated - Issuer of the invocation is irrelevant as long as + * they have authorization to invoke on subject `space`. + */ + issuer?: DID invocation: UCANLink }