Compare commits
2 Commits
77948e93b6
...
94007dc7da
Author | SHA1 | Date | |
---|---|---|---|
94007dc7da | |||
|
7145a0b1cd |
@ -13,6 +13,9 @@ exports.collection = function (callback) {
|
|||||||
.toArray((err, result) => {
|
.toArray((err, result) => {
|
||||||
result.forEach(item => {
|
result.forEach(item => {
|
||||||
item.type = "radio";
|
item.type = "radio";
|
||||||
|
if (!item.covers) {
|
||||||
|
item.covers = {};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
callback(result);
|
callback(result);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user