Skip to content

Commit

Permalink
fix: use dataretention option for results ttl in database
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem committed Jul 28, 2023
1 parent d1cec71 commit 7869097
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public async Task InitializeIndexesAsync(IClientSessionHandle sessionHandle,
IndexHelper.CreateHashedIndex<Result>(model => model.SessionId),
IndexHelper.CreateHashedIndex<Result>(model => model.OwnerTaskId),
IndexHelper.CreateAscendingIndex<Result>(model => model.CreationDate,
expireAfter: TimeSpan.FromDays(1)),
expireAfter: options.DataRetention),
};

await collection.Indexes.CreateManyAsync(sessionHandle,
Expand Down

0 comments on commit 7869097

Please sign in to comment.