Improve share error handling
This commit is contained in:
@@ -4,7 +4,6 @@ module.exports = async function (req, res) {
|
||||
const client = new sdk.Client();
|
||||
|
||||
let database = new sdk.Database(client);
|
||||
|
||||
let storage = new sdk.Storage(client);
|
||||
|
||||
client
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user