latestmatches fix

This commit is contained in:
Lanta 2024-10-29 09:31:37 +01:00
parent 618c36cb18
commit 88a9e7ac66

View file

@ -110,7 +110,7 @@ $player_matches_object = @()
foreach ($file in $matchfiles) {
$filecontent = get-content $file | convertfrom-json
$matchfiledate = $filecontent.data.attributes.createdAt
if ($matchfiledate -lt (get-date).AddMonths(-1)) {
if ($matchfiledate -lt (get-date).AddMonths(-3)) {
write-output "archiving $matchfiledate"
Move-Item -Path $file -Destination "$scriptroot/../data/matches/archive"
}