Merge pull request 'set empty covers for radios in the db funktion' (#17) from dev into main
Reviewed-on: #17
This commit is contained in:
commit
94007dc7da
@ -13,6 +13,9 @@ exports.collection = function (callback) {
|
||||
.toArray((err, result) => {
|
||||
result.forEach(item => {
|
||||
item.type = "radio";
|
||||
if (!item.covers) {
|
||||
item.covers = {};
|
||||
}
|
||||
});
|
||||
callback(result);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user