1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

New: Renamed Blacklist to Blocklist

This commit is contained in:
Robin Dadswell
2021-08-19 20:13:14 +01:00
committed by Qstick
parent 8024f4658c
commit 13224f03cc
52 changed files with 614 additions and 589 deletions
@@ -0,0 +1,12 @@
import _, { get } from 'lodash';
export default function migrateBlacklistToBlocklist(persistedState) {
const blocklist = get(persistedState, 'blacklist');
if (!blocklist) {
return;
}
persistedState.blocklist = blocklist;
_.remove(persistedState, 'blacklist');
}