set empty covers for radios in the db funktion #17

Merged
artem merged 1 commits from dev into main 2023-09-22 14:46:09 +02:00
Showing only changes of commit 7145a0b1cd - Show all commits

View File

@ -13,6 +13,9 @@ exports.collection = function (callback) {
.toArray((err, result) => {
result.forEach(item => {
item.type = "radio";
if (!item.covers) {
item.covers = {};
}
});
callback(result);
});