Fix matching from share, add fix script

This commit is contained in:
Jonathan Cremin 2017-10-23 21:05:58 +01:00
parent 183d58a540
commit 62b7121301
7 changed files with 152 additions and 60 deletions

View file

@ -23,9 +23,14 @@ export default function* () {
if (!share) {
share = yield create(music);
const job = queue.create('search', share).save((err) => {
if (!err) console.log(job.id);
});
for (const service of services) {
if (service.id === share.service) {
continue; // eslint-disable-line no-continue
}
const job = queue.create('search', {share: share, service: service}).save((err) => {
if (!err) console.log(job.id);
});
}
}
share = share.toJSON();