This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user