small clean ups
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Artem Anufrij
2023-02-16 23:55:40 +01:00
parent 50c682e31f
commit f984acea9b
3 changed files with 4 additions and 5 deletions

View File

@@ -22,21 +22,18 @@ exports.byId = function (id, callback) {
if (result) {
switch (result.type) {
case "album":
console.log(result.type);
database.albums.byId(result.object_id, undefined, (album) => {
result.object = album;
cb(callback, result);
});
break;
case "box":
console.log(result.type);
database.boxes.byId(result.object_id, undefined, (box) => {
result.object = box;
cb(callback, result);
});
break;
default:
console.log(result.type);
cb(callback, result);
}
} else {