v3 payments: working IAP and Stripe, move paypalBillingSetup to its own file, closeChal is now a challenge instance method

This commit is contained in:
Matteo Pagliazzi
2016-05-09 22:58:15 +02:00
parent e980b3ce0a
commit 0114e310eb
18 changed files with 414 additions and 381 deletions

View File

@@ -165,6 +165,8 @@ function processUsers (afterId) {
if (!oldTask.text) oldTask.text = 'task text'; // required
oldTask.tags = _.map(oldTask.tags, function (tagPresent, tagId) {
return tagPresent && tagId;
}).filter(function (tag) {
return tag !== false;
});
if (oldTask.type !== 'todo' || (oldTask.type === 'todo' && !oldTask.completed)) {