fix: cannot turn off all networks

isekai-main
Tong Ho 3 years ago committed by Julian Lam
parent 2e088a8ef0
commit bbc7f2afba

@ -41,12 +41,12 @@ social.getActivePostSharing = async function () {
};
social.setActivePostSharingNetworks = async function (networkIDs) {
social.postSharing = null;
await db.delete('social:posts.activated');
if (!networkIDs.length) {
return;
}
await db.setAdd('social:posts.activated', networkIDs);
social.postSharing = null;
};
require('./promisify')(social);

Loading…
Cancel
Save