More bluebird, fetch larger artwork
This commit is contained in:
parent
e671b823e9
commit
23896f7ee6
16 changed files with 117 additions and 81 deletions
|
@ -23,8 +23,7 @@ module.exports = function(req, res, next) {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
req.db.matches.findOne({_id:serviceId + itemId}).then(function(doc) {
|
||||
req.db.matches.findOne({_id:serviceId + "-" + itemId}).then(function(doc) {
|
||||
if (doc) {
|
||||
res.render(type, {
|
||||
page: type,
|
||||
|
@ -58,7 +57,7 @@ module.exports = function(req, res, next) {
|
|||
});
|
||||
|
||||
items.unshift(item);
|
||||
req.db.matches.save({_id:serviceId + itemId, items:items});
|
||||
req.db.matches.save({_id:serviceId + "-" + itemId, items:items});
|
||||
res.render(type, {
|
||||
page: type,
|
||||
title: item.name + " by " + item.artist.name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue