File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,17 @@ export async function cleanupEntries(
47
47
context . logger . error (
48
48
`The collection is not accessible without superuser rights. Please provide superuser credentials in the config.`
49
49
) ;
50
- return ;
50
+ } else {
51
+ const reason = await collectionRequest
52
+ . json ( )
53
+ . then ( ( data ) => data . message ) ;
54
+ const errorMessage = `Fetching ids failed with status code ${ collectionRequest . status } .\nReason: ${ reason } ` ;
55
+ context . logger . error ( errorMessage ) ;
51
56
}
52
57
53
- const reason = await collectionRequest
54
- . json ( )
55
- . then ( ( data ) => data . message ) ;
56
- const errorMessage = `Fetching ids failed with status code ${ collectionRequest . status } .\nReason: ${ reason } ` ;
57
- context . logger . error ( errorMessage ) ;
58
+ // Remove all entries from the store
59
+ context . logger . info ( `Removing all entries from the store.` ) ;
60
+ context . store . clear ( ) ;
58
61
return ;
59
62
}
60
63
You can’t perform that action at this time.
0 commit comments