mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-05 23:41:27 +03:00
Fixed issue where sub was assumed as duplicate always if using local db
This commit is contained in:
@@ -33,7 +33,7 @@ exports.subscribe = async (sub, user_uid = null, skip_get_info = false) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub['user_uid'] = user_uid ? user_uid : undefined;
|
sub['user_uid'] = user_uid ? user_uid : undefined;
|
||||||
await db_api.insertRecordIntoTable('subscriptions', sub);
|
await db_api.insertRecordIntoTable('subscriptions', JSON.parse(JSON.stringify(sub)));
|
||||||
|
|
||||||
let success = skip_get_info ? true : await getSubscriptionInfo(sub);
|
let success = skip_get_info ? true : await getSubscriptionInfo(sub);
|
||||||
exports.writeSubscriptionMetadata(sub);
|
exports.writeSubscriptionMetadata(sub);
|
||||||
|
|||||||
Reference in New Issue
Block a user