fix callback function
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-02-17 22:36:34 +01:00
parent 27bd25b357
commit 4aea43a8bb
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: new ObjectId(album_id),
object_id: 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: new ObjectId(box_id),
object_id: box._id,
type: "box",
cover: box.covers.cover32
}