File tree 2 files changed +8
-7
lines changed
packages/idempotency/src/persistence
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 2
2
import { IdempotencyRecord , PersistenceLayer } from './PersistenceLayer' ;
3
3
4
4
class DynamoDBPersistenceLayer extends PersistenceLayer {
5
- constructor ( _tableName : string , _key_attr : string = 'id' ) {
6
- super ( )
5
+ public constructor ( _tableName : string , _key_attr : string = 'id' ) {
6
+ super ( ) ;
7
7
}
8
8
protected async _deleteRecord ( ) : Promise < void > { }
9
9
protected async _getRecord ( ) : Promise < IdempotencyRecord > {
Original file line number Diff line number Diff line change @@ -8,18 +8,19 @@ class IdempotencyRecord {
8
8
public inProgressExpiryTimestamp : number | undefined ,
9
9
public responseData : string = '' ,
10
10
public payloadHash : string | undefined ) { }
11
-
11
+
12
+ public getStatus ( ) : string {
13
+ return '' ;
14
+ }
15
+
12
16
public isExpired ( ) : boolean {
13
17
return false ;
14
18
}
15
-
19
+
16
20
public responseJsonAsObject ( ) : Record < string , unknown > | undefined {
17
21
return ;
18
22
}
19
23
20
- public getStatus ( ) : string {
21
- return '' ;
22
- }
23
24
}
24
25
25
26
abstract class PersistenceLayer implements PersistenceLayerInterface {
You can’t perform that action at this time.
0 commit comments