fix: prevent sync spam

This commit is contained in:
2026-06-19 04:42:59 -03:00
parent c2b94bec4a
commit 4617d6c9fa
3 changed files with 43 additions and 49 deletions
-5
View File
@@ -59,7 +59,6 @@ export async function mapStoreToSpooferConfig(state: {
const perkMap = new Map<string, { role: number }>();
allPerks.forEach((p: { id: string; role: number }) => perkMap.set(p.id, p));
// --- DLCs ---
const dlcListSteam: string[] = [];
const dlcListEGS: string[] = [];
const dlcListGRDK: string[] = [];
@@ -87,13 +86,11 @@ export async function mapStoreToSpooferConfig(state: {
dlcListGRDK.push(dlc.dlcIds.grdk);
}
// --- Items ---
const camperItems: Record<string, number> = {};
for (const [id, qty] of Object.entries(state.items)) {
if (qty > 0 && itemIdSet.has(id)) camperItems[id] = qty;
}
// --- Offerings ---
const camperOfferings: Record<string, number> = {};
const slasherOfferings: Record<string, number> = {};
const globalOfferings: Record<string, number> = {};
@@ -107,7 +104,6 @@ export async function mapStoreToSpooferConfig(state: {
else globalOfferings[id] = qty;
}
// --- Addons ---
const camperAddons: Record<string, number> = {};
const slasherAddons: Record<string, number> = {};
@@ -119,7 +115,6 @@ export async function mapStoreToSpooferConfig(state: {
else camperAddons[id] = qty;
}
// --- Perks ---
const camperPerks: string[] = [];
const slasherPerks: string[] = [];