From 72632a174ba9f2ef4b1a998920fa4bd7b302b5d1 Mon Sep 17 00:00:00 2001 From: React Date: Sat, 18 Jan 2025 17:32:18 +0000 Subject: [PATCH] Removal of attackerchampion from database and saves --- server/src/controllers/base/save/baseSave.ts | 4 ---- server/src/data/tribes/abunaki.ts | 2 -- server/src/data/tribes/dreadnaught.ts | 2 -- server/src/data/tribes/kozu.ts | 2 -- server/src/data/tribes/legionnaire.ts | 3 --- server/src/dev/devSandbox.ts | 1 - server/src/enums/SaveKeys.ts | 1 - server/src/models/save.model.ts | 5 ----- 8 files changed, 20 deletions(-) diff --git a/server/src/controllers/base/save/baseSave.ts b/server/src/controllers/base/save/baseSave.ts index 135bb95d..8ab00a82 100644 --- a/server/src/controllers/base/save/baseSave.ts +++ b/server/src/controllers/base/save/baseSave.ts @@ -81,10 +81,6 @@ export const baseSave: KoaController = async (ctx) => { const value = saveData[key]; switch (key) { - case SaveKeys.ATTACKERCHAMPION: - if (value) userSave.attackerchampion = value; - break; - case SaveKeys.MONSTERUPDATE: await monsterUpdateHandler(value, userSave); break; diff --git a/server/src/data/tribes/abunaki.ts b/server/src/data/tribes/abunaki.ts index 2d11e30b..3e50eea4 100644 --- a/server/src/data/tribes/abunaki.ts +++ b/server/src/data/tribes/abunaki.ts @@ -1162,7 +1162,6 @@ export const abunaki = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, @@ -2448,7 +2447,6 @@ export const abunaki = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, diff --git a/server/src/data/tribes/dreadnaught.ts b/server/src/data/tribes/dreadnaught.ts index 031d8916..17900e46 100644 --- a/server/src/data/tribes/dreadnaught.ts +++ b/server/src/data/tribes/dreadnaught.ts @@ -1290,7 +1290,6 @@ export const dreadnaught = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, @@ -2717,7 +2716,6 @@ export const dreadnaught = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, diff --git a/server/src/data/tribes/kozu.ts b/server/src/data/tribes/kozu.ts index df453504..e8106836 100644 --- a/server/src/data/tribes/kozu.ts +++ b/server/src/data/tribes/kozu.ts @@ -4639,7 +4639,6 @@ export const kozu = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, @@ -10812,7 +10811,6 @@ export const kozu = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, diff --git a/server/src/data/tribes/legionnaire.ts b/server/src/data/tribes/legionnaire.ts index 925462ec..48e290ec 100644 --- a/server/src/data/tribes/legionnaire.ts +++ b/server/src/data/tribes/legionnaire.ts @@ -1010,7 +1010,6 @@ export const legionnaire = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, @@ -2751,7 +2750,6 @@ export const legionnaire = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, @@ -4492,7 +4490,6 @@ export const legionnaire = { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], siege: null, attackersiege: null, diff --git a/server/src/dev/devSandbox.ts b/server/src/dev/devSandbox.ts index ee2f3975..719160b4 100644 --- a/server/src/dev/devSandbox.ts +++ b/server/src/dev/devSandbox.ts @@ -3947,7 +3947,6 @@ export const devSandbox = (user?: User) => { gifts: [], sentinvites: [], sentgifts: [], - attackerchampion: "null", fbpromos: [], }; }; diff --git a/server/src/enums/SaveKeys.ts b/server/src/enums/SaveKeys.ts index 4fdb2132..6475a3b3 100644 --- a/server/src/enums/SaveKeys.ts +++ b/server/src/enums/SaveKeys.ts @@ -11,7 +11,6 @@ export enum SaveKeys { ACADEMY = "academy", CHAMPION = "champion", QUESTS = "quests", - ATTACKERCHAMPION = "attackerchampion", MONSTERUPDATE = "monsterupdate", ATTACKLOOT = "attackloot", } diff --git a/server/src/models/save.model.ts b/server/src/models/save.model.ts index af21d9fb..f0d70f69 100644 --- a/server/src/models/save.model.ts +++ b/server/src/models/save.model.ts @@ -200,10 +200,6 @@ export class Save { @Property({ type: "json", nullable: true, default: "null" }) champion?: string; - @FrontendKey - @Property({ type: "json", nullable: true, default: "null" }) - attackerchampion: string; - @FrontendKey @Property({ default: 0 }) empiredestroyed!: number; @@ -507,7 +503,6 @@ export class Save { "gifts", "sentinvites", "sentgifts", - "attackerchampion", "fbpromos", "purchase", "powerups",