Commit 19c6f76 1 parent 0cfd72e commit 19c6f76 Copy full SHA for 19c6f76
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,15 @@ const main = async () => {
40
40
. entities ( logsByCheckoutOrOrderId , logsByDateEntity ) ;
41
41
42
42
if ( values [ "dry-run" ] ) {
43
- console . log ( `Would delete logs for lte: ${ endDate . toISOString ( ) } ` ) ;
43
+ console . log (
44
+ `Would delete logs from ${ env . DYNAMODB_LOGS_TABLE_NAME } for lte: ${ endDate . toISOString ( ) } ` ,
45
+ ) ;
44
46
return ;
45
47
}
46
48
47
- console . log ( `Deleting logs for lte: ${ endDate . toISOString ( ) } ` ) ;
49
+ console . log (
50
+ `Deleting logs fron ${ env . DYNAMODB_LOGS_TABLE_NAME } for lte: ${ endDate . toISOString ( ) } ` ,
51
+ ) ;
48
52
49
53
do {
50
54
const page = await command
@@ -64,6 +68,10 @@ const main = async () => {
64
68
} )
65
69
. send ( ) ;
66
70
71
+ console . log (
72
+ `Deleting ${ page . Items ?. length } logs with ${ JSON . stringify ( page . LastEvaluatedKey ) } ` ,
73
+ ) ;
74
+
67
75
for ( const item of page ?. Items ?? [ ] ) {
68
76
if ( item . checkoutOrOrderId ) {
69
77
await logsByCheckoutOrOrderId
You can’t perform that action at this time.
0 commit comments