mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(shops): post merge cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user