fix(shops): post merge cleanup

This commit is contained in:
Sabe Jones
2024-06-14 18:12:22 -05:00
parent 31e501f65a
commit b49dddeb47
10 changed files with 322 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ import upperFirst from 'lodash/upperFirst';
import t from '../translation';
/* eslint-disable camelcase */
const plannedBackgrounds = {
const backgrounds = {
backgrounds062014: {
beach: { },
fairy_ring: { },
@@ -667,22 +667,8 @@ const plannedBackgrounds = {
};
/* eslint-enable quote-props */
const releaseDates = {
backgrounds102023: '2023-10-10T08:00-04:00',
backgrounds112023: '2023-11-07T08:00-05:00',
backgrounds122023: '2023-12-05T08:00-05:00',
backgrounds012024: '2024-01-04T08:00-05:00',
backgrounds022024: '2024-02-06T08:00-05:00',
backgrounds032024: '2024-03-05T08:00-05:00',
backgrounds042024: '2024-04-04T08:00-04:00',
backgrounds052024: '2024-05-07T08:00-04:00',
};
const flat = {};
const backgrounds = omitBy(plannedBackgrounds, (bgSet, key) => releaseDates[key]
&& moment().isBefore(releaseDates[key]));
forOwn(backgrounds, (backgroundsInSet, set) => {
forOwn(backgroundsInSet, (background, bgKey) => {
background.key = bgKey;