Improve share error handling

This commit is contained in:
Elias Schneider
2022-05-08 14:16:19 +02:00
parent 116c3403ff
commit 7c67c5b312
5 changed files with 30 additions and 53 deletions

View File

@@ -35,7 +35,7 @@ module.exports = async function (req, res) {
}
let userIds;
if (payload.emails) {
if (payload.emails.length > 0) {
const creatorEmail = (await users.get(userId)).email
userIds = []
userIds.push(userId)