Fixed bug causing incorrect creation dates in the cache.

This commit is contained in:
CalDescent 2023-05-13 12:27:56 +01:00
parent 23d211836f
commit 5c7d12f25e

View File

@ -390,8 +390,8 @@ public class ArbitraryTransaction extends Transaction {
// Check for existing cached data
if (existingArbitraryResourceData == null) {
// Nothing exists yet, so set everything from the newest transaction
arbitraryResourceData.created = latestTransactionData.getTimestamp();
// Nothing exists yet, so set creation date from the current transaction (it will be reduced later if needed)
arbitraryResourceData.created = arbitraryTransactionData.getTimestamp();
arbitraryResourceData.updated = null;
}
else {