Skip to content

Commit

Permalink
feat: fixing linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vgphoenixcampos committed Sep 9, 2022
1 parent d90909e commit 2d9d377
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {}
protected async _getRecord(): Promise<IdempotencyRecord> {
Expand Down
11 changes: 6 additions & 5 deletions packages/idempotency/src/persistence/PersistenceLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown> | undefined {
return;
}

public getStatus(): string {
return '';
}
}

abstract class PersistenceLayer implements PersistenceLayerInterface {
Expand Down

0 comments on commit 2d9d377

Please sign in to comment.