Compare commits

..

No commits in common. "2c4e661b9d727a386ca3ce170427ec4b11a1f753" and "2d1e117b66a90b8df8b24def58048e9352f21d93" have entirely different histories.

3 changed files with 4 additions and 4 deletions

View File

@ -126,7 +126,7 @@ router.route("/:id/share")
if (result == null) {
let item = {
user_id: req.user._id,
object_id: album._id,
object_id: new ObjectId(album_id),
type: "album",
cover: album.covers.cover32
}

View File

@ -128,7 +128,7 @@ router.route("/:id/share")
if (result == null) {
let item = {
user_id: req.user._id,
object_id: box._id,
object_id: new ObjectId(box_id),
type: "box",
cover: box.covers.cover32
}

View File

@ -56,7 +56,7 @@ exports.exists = function (object_id, callback) {
dbo.collection("shares")
.findOne({ object_id: ObjectId(object_id) })
.then(result => {
cb(callback, result);
cp(callback, result);
});
}
@ -75,7 +75,7 @@ exports.add = function (item, callback) {
])
.toArray((err, result) => {
if (err) throw err;
cb(callback, result[0]);
cp(callback, result[0]);
})
}
});