From 382180470add316dd48d01842f302e30edf870a0 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Wed, 1 Nov 2023 17:13:20 +0100 Subject: [PATCH] fix: storefront principal type on cron (#1055) --- packages/filecoin-api/src/storefront/api.ts | 9 ++------- packages/filecoin-api/test/types.ts | 1 + 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/filecoin-api/src/storefront/api.ts b/packages/filecoin-api/src/storefront/api.ts index f8531c65d..4a06ed0de 100644 --- a/packages/filecoin-api/src/storefront/api.ts +++ b/packages/filecoin-api/src/storefront/api.ts @@ -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 { /** diff --git a/packages/filecoin-api/test/types.ts b/packages/filecoin-api/test/types.ts index 423fa492d..d17cda9b6 100644 --- a/packages/filecoin-api/test/types.ts +++ b/packages/filecoin-api/test/types.ts @@ -41,6 +41,7 @@ export interface StorefrontTestEventsContext StorefrontInterface.StorefrontClientContext, StorefrontInterface.CronContext { id: Signer + aggregatorId: Signer service: Partial<{ filecoin: Partial piece: Partial