Skip to content

Commit

Permalink
fix: storefront principal type on cron (storacha#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Nov 1, 2023
1 parent dbb1307 commit 3821804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/filecoin-api/src/storefront/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,8 @@ export interface StorefrontClientContext {
export interface CronContext
extends Pick<
ServiceContext,
'id' | 'pieceStore' | 'receiptStore' | 'taskStore'
> {
/**
* Principal for aggregator service
*/
aggregatorId: Signer
}
'id' | 'pieceStore' | 'receiptStore' | 'taskStore' | 'aggregatorId'
> {}

export interface PieceRecord {
/**
Expand Down
1 change: 1 addition & 0 deletions packages/filecoin-api/test/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface StorefrontTestEventsContext
StorefrontInterface.StorefrontClientContext,
StorefrontInterface.CronContext {
id: Signer
aggregatorId: Signer
service: Partial<{
filecoin: Partial<import('../src/types.js').StorefrontService['filecoin']>
piece: Partial<import('../src/types.js').AggregatorService['piece']>
Expand Down

0 comments on commit 3821804

Please sign in to comment.