Skip to content
Snippets Groups Projects
Commit 6da8e38e authored by Sebastian's avatar Sebastian
Browse files

feat(component-invite): return 200 ok if no authors

parent 2a2637c6
No related branches found
No related tags found
1 merge request!5Refactor component invite
......@@ -6,6 +6,9 @@ module.exports = models => async (req, res) => {
const { collectionId } = req.params
try {
const collection = await models.Collection.find(collectionId)
if (collection.authors === undefined) {
return res.status(200).json({})
}
const members = await teamHelper.getTeamMembersByCollection(
collectionId,
'author',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment