Skip to content

Commit

Permalink
Merge pull request #626 from MadhuNEC/truncation_expire_after_seconds
Browse files Browse the repository at this point in the history
Fixed to use truncation expire
  • Loading branch information
AlvaroVega authored Nov 3, 2023
2 parents d86eeff + b0858e8 commit 8ee2900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Fix: Updated isAggregated() to fix truncation expire (#606)
- Set Nodejs 14 as minimum version in packages.json (effectively removing Nodev12 from supported versions)
- Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608)
- Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608)
2 changes: 1 addition & 1 deletion lib/database/sthDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function isAggregated(collectionName) {
function setTTLPolicy(collection) {
// Set the TTL policy if required
if (sthConfig.TRUNCATION_EXPIRE_AFTER_SECONDS > 0) {
if (!isAggregated(collection)) {
if (!isAggregated(collection.collectionName)) {
if (sthConfig.TRUNCATION_SIZE === 0) {
collection.ensureIndex(
{
Expand Down

0 comments on commit 8ee2900

Please sign in to comment.