change cover structure in radio fix #15
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Artem Anufrij
2023-09-21 11:13:47 +02:00
parent 4aea43a8bb
commit 07cc31ede3
2 changed files with 7 additions and 6 deletions

View File

@@ -56,9 +56,9 @@ router
if (radio) {
if (req.files.file) {
resize_image_for_radio(req.files.file.data, (result) => {
radio.cover32 = result.cover32;
radio.cover64 = result.cover64;
radio.cover128 = result.cover128;
radio.covers.cover32 = result.cover32;
radio.covers.cover64 = result.cover64;
radio.covers.cover128 = result.cover128;
database.radios.update(radio);
res.json(radio).end();
});