diff --git a/packages/idempotency/src/persistence/DynamoDbPersistenceLayer.ts b/packages/idempotency/src/persistence/DynamoDbPersistenceLayer.ts index 0384271af7..6592841b3f 100644 --- a/packages/idempotency/src/persistence/DynamoDbPersistenceLayer.ts +++ b/packages/idempotency/src/persistence/DynamoDbPersistenceLayer.ts @@ -2,8 +2,8 @@ import { IdempotencyRecord, PersistenceLayer } from './PersistenceLayer'; class DynamoDBPersistenceLayer extends PersistenceLayer { - constructor(_tableName: string, _key_attr: string = 'id') { - super() + public constructor(_tableName: string, _key_attr: string = 'id') { + super(); } protected async _deleteRecord(): Promise {} protected async _getRecord(): Promise { diff --git a/packages/idempotency/src/persistence/PersistenceLayer.ts b/packages/idempotency/src/persistence/PersistenceLayer.ts index aea564faa7..c7a1b30c63 100644 --- a/packages/idempotency/src/persistence/PersistenceLayer.ts +++ b/packages/idempotency/src/persistence/PersistenceLayer.ts @@ -8,18 +8,19 @@ class IdempotencyRecord { public inProgressExpiryTimestamp: number | undefined, public responseData: string = '', public payloadHash: string | undefined) {} - + + public getStatus(): string { + return ''; + } + public isExpired(): boolean { return false; } - + public responseJsonAsObject(): Record | undefined { return; } - public getStatus(): string { - return ''; - } } abstract class PersistenceLayer implements PersistenceLayerInterface {