share: object id
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Artem Anufrij 2023-02-17 22:52:54 +01:00
parent e4c1f14300
commit 831597f015
2 changed files with 2 additions and 2 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),
title: album.title,
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),
title: box.title,
type: "box",
cover: box.covers.cover32