Compare commits

..

2 Commits

Author SHA1 Message Date
94007dc7da Merge pull request 'set empty covers for radios in the db funktion' (#17) from dev into main
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Reviewed-on: #17
2023-09-22 14:46:08 +02:00
Artem Anufrij
7145a0b1cd set empty covers for radios in the db funktion
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-09-22 14:22:55 +02:00

View File

@ -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);
}); });