mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-16 17:31:28 +03:00
Fixed issue where if multi user mode was not defined, subscriptions could not be retrieved
This commit is contained in:
@@ -494,7 +494,7 @@ async function getSubscriptions(user_uid = null) {
|
|||||||
async function getAllSubscriptions() {
|
async function getAllSubscriptions() {
|
||||||
const all_subs = await db_api.getRecords('subscriptions');
|
const all_subs = await db_api.getRecords('subscriptions');
|
||||||
const multiUserMode = config_api.getConfigItem('ytdl_multi_user_mode');
|
const multiUserMode = config_api.getConfigItem('ytdl_multi_user_mode');
|
||||||
return all_subs.filter(sub => !!(sub.user_uid) === multiUserMode);
|
return all_subs.filter(sub => !!(sub.user_uid) === !!multiUserMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getSubscription(subID) {
|
async function getSubscription(subID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user