Fix matching from share, add fix script
This commit is contained in:
parent
183d58a540
commit
62b7121301
7 changed files with 152 additions and 60 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue