main #20

Merged
artem merged 16 commits from main into dev 2023-09-27 15:17:17 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 831597f015 - Show all commits

View File

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

View File

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