Skip to content
Snippets Groups Projects
Commit 3bfd4a3e authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

Merge branch 'refactor-component-invite' of...

Merge branch 'refactor-component-invite' of gitlab.coko.foundation:xpub/xpub-faraday into refactor-component-invite
parents aae9ef67 b2d11b58
No related branches found
No related tags found
1 merge request!5Refactor component invite
...@@ -119,7 +119,7 @@ const CollectionsInvitations = app => { ...@@ -119,7 +119,7 @@ const CollectionsInvitations = app => {
app.patch( app.patch(
`${basePath}/:invitationId`, `${basePath}/:invitationId`,
authBearer, authBearer,
require(`${routePath}/delete`)(app.locals.models), require(`${routePath}/patch`)(app.locals.models),
) )
} }
......
...@@ -6,6 +6,9 @@ module.exports = models => async (req, res) => { ...@@ -6,6 +6,9 @@ module.exports = models => async (req, res) => {
const { collectionId } = req.params const { collectionId } = req.params
try { try {
const collection = await models.Collection.find(collectionId) const collection = await models.Collection.find(collectionId)
if (collection.authors === undefined) {
return res.status(200).json({})
}
const members = await teamHelper.getTeamMembersByCollection( const members = await teamHelper.getTeamMembersByCollection(
collectionId, collectionId,
'author', '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