fix: keep tierlist saves consistent
Build and Deploy Next Preview / build-deploy (push) Successful in 2m52s

This commit is contained in:
2026-10-10 08:10:54 +00:00 Unverified
parent c8f9352fe9
commit 26a4331a08
15 changed files with 1051 additions and 76 deletions
+2 -2
View File
@@ -102,7 +102,7 @@ async function buildLiveTierlistConfig(
});
}
function shouldSnapshot(config: TierlistResolvedConfig) {
export function shouldSnapshot(config: TierlistResolvedConfig) {
const deprecatedAt = parseDate(config.version.deprecates);
const olderThanMonth =
Number.isFinite(deprecatedAt) &&
@@ -117,7 +117,7 @@ function shouldSnapshot(config: TierlistResolvedConfig) {
config.chars.length > 0 &&
config.chars.every((char) => placed.has(char.id));
return olderThanMonth || allTiered;
return olderThanMonth && allTiered;
}
function parseDate(value: string) {