Fix Splatfest Battle (Open) presence schedule

This commit is contained in:
Samuel Elliott 2023-11-19 21:13:56 +00:00
parent 6656ca97e0
commit 5ef9101c1e
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
3 changed files with 9 additions and 9 deletions

14
package-lock.json generated
View File

@ -20,7 +20,7 @@
"node-notifier": "^10.0.1", "node-notifier": "^10.0.1",
"node-persist": "^3.1.3", "node-persist": "^3.1.3",
"read": "^1.0.7", "read": "^1.0.7",
"splatnet3-types": "^0.2.20230830134457", "splatnet3-types": "^0.2.20231119210145",
"supports-color": "^8.1.1", "supports-color": "^8.1.1",
"tslib": "^2.6.0", "tslib": "^2.6.0",
"undici": "^5.22.1", "undici": "^5.22.1",
@ -5257,9 +5257,9 @@
} }
}, },
"node_modules/splatnet3-types": { "node_modules/splatnet3-types": {
"version": "0.2.20230830134457", "version": "0.2.20231119210145",
"resolved": "https://registry.npmjs.org/splatnet3-types/-/splatnet3-types-0.2.20230830134457.tgz", "resolved": "https://registry.npmjs.org/splatnet3-types/-/splatnet3-types-0.2.20231119210145.tgz",
"integrity": "sha512-BlTEpzWe4cbps17oqbFAP56YbHmWXTy2wppeZ5JKUNwAy6U6bNt3DVm2YDyg7Od3VQjm1qEMukKEmznrTjSaPw==" "integrity": "sha512-ySnftvxfn7zuGUgBxcjGPYhVHs8QaUCxHdbUNw4u46bXwtxQ82eyvXc+sDQI5TcHHPHz821PyrhtWW3pt9QdAg=="
}, },
"node_modules/sprintf-js": { "node_modules/sprintf-js": {
"version": "1.1.2", "version": "1.1.2",
@ -9943,9 +9943,9 @@
} }
}, },
"splatnet3-types": { "splatnet3-types": {
"version": "0.2.20230830134457", "version": "0.2.20231119210145",
"resolved": "https://registry.npmjs.org/splatnet3-types/-/splatnet3-types-0.2.20230830134457.tgz", "resolved": "https://registry.npmjs.org/splatnet3-types/-/splatnet3-types-0.2.20231119210145.tgz",
"integrity": "sha512-BlTEpzWe4cbps17oqbFAP56YbHmWXTy2wppeZ5JKUNwAy6U6bNt3DVm2YDyg7Od3VQjm1qEMukKEmznrTjSaPw==" "integrity": "sha512-ySnftvxfn7zuGUgBxcjGPYhVHs8QaUCxHdbUNw4u46bXwtxQ82eyvXc+sDQI5TcHHPHz821PyrhtWW3pt9QdAg=="
}, },
"sprintf-js": { "sprintf-js": {
"version": "1.1.2", "version": "1.1.2",

View File

@ -47,7 +47,7 @@
"node-notifier": "^10.0.1", "node-notifier": "^10.0.1",
"node-persist": "^3.1.3", "node-persist": "^3.1.3",
"read": "^1.0.7", "read": "^1.0.7",
"splatnet3-types": "^0.2.20230830134457", "splatnet3-types": "^0.2.20231119210145",
"supports-color": "^8.1.1", "supports-color": "^8.1.1",
"tslib": "^2.6.0", "tslib": "^2.6.0",
"undici": "^5.22.1", "undici": "^5.22.1",

View File

@ -196,7 +196,7 @@ export function getSettingForVsMode(schedules: StageScheduleResult, vs_mode: Pic
const settings = getSchedule(schedules.festSchedules)?.festMatchSettings; const settings = getSchedule(schedules.festSchedules)?.festMatchSettings;
if (vs_mode.id === 'VnNNb2RlLTY=') { if (vs_mode.id === 'VnNNb2RlLTY=') {
return settings?.find(s => (s as VsSetting_schedule)!.festMode === FestMatchMode.OPEN); return settings?.find(s => (s as VsSetting_schedule)!.festMode === FestMatchMode.REGULAR);
} }
if (vs_mode.id === 'VnNNb2RlLTc=') { if (vs_mode.id === 'VnNNb2RlLTc=') {
return settings?.find(s => (s as VsSetting_schedule)!.festMode === FestMatchMode.CHALLENGE); return settings?.find(s => (s as VsSetting_schedule)!.festMode === FestMatchMode.CHALLENGE);