Skip to content

Commit 07a6dc3

Browse files
committed
Remove ttl from response
We added the `ttl` value to the plugin's response to help us figure out the caching. We remove it now it's no longer needed
1 parent 8d22101 commit 07a6dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/plugins/charging-module-token-cache.plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ChargingModuleTokenCachePlugin = {
2121
// Otherwise, set the expiry time to 0 to avoid caching the unsuccessful attempt
2222
flags.ttl = token.expiresIn ? _setExpiryTime(token.expiresIn) : 0
2323

24-
return { ...token, ttl: flags.ttl }
24+
return token
2525
}, {
2626
cache: {
2727
// We need to set an expiry time here but we will always override it

0 commit comments

Comments
 (0)