|
|
@ -1,8 +1,8 @@
|
|
|
|
import get from 'lodash';
|
|
|
|
import _ from 'lodash';
|
|
|
|
|
|
|
|
|
|
|
|
export default function migratePreDbToReleased(persistedState) {
|
|
|
|
export default function migratePreDbToReleased(persistedState) {
|
|
|
|
const addMovie = get(persistedState, 'addMovie.defaults.minimumAvailability');
|
|
|
|
const addMovie = _.get(persistedState, 'addMovie.defaults.minimumAvailability');
|
|
|
|
const discoverMovie = get(persistedState, 'discoverMovie.defaults.minimumAvailability');
|
|
|
|
const discoverMovie = _.get(persistedState, 'discoverMovie.defaults.minimumAvailability');
|
|
|
|
|
|
|
|
|
|
|
|
if (!addMovie && !discoverMovie) {
|
|
|
|
if (!addMovie && !discoverMovie) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|