feat: restore legacy named playlist workflows
This commit is contained in:
@@ -441,6 +441,16 @@
|
||||
return recreated;
|
||||
}
|
||||
|
||||
function withEnabled(entry, enabled) {
|
||||
const freshRead = trustedPlaylistEntries.get(entry);
|
||||
if (!freshRead || typeof enabled !== "boolean") return null;
|
||||
if (entry.enabled === enabled) return entry;
|
||||
const replacement = restorePlaylistEntry({ ...entry, enabled });
|
||||
if (!replacement) return null;
|
||||
trustedPlaylistEntries.set(replacement, freshRead);
|
||||
return replacement;
|
||||
}
|
||||
|
||||
return {
|
||||
bridgeContract,
|
||||
audiences,
|
||||
@@ -471,6 +481,7 @@
|
||||
createViPlaylistEntry,
|
||||
isPlaylistEntryPlayable,
|
||||
restorePlaylistEntry,
|
||||
withEnabled,
|
||||
refreshPlaylistEntry: restorePlaylistEntry
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user