diff --git a/packages/component-invite/src/CollectionsInvitations.js b/packages/component-invite/src/CollectionsInvitations.js index 2189f81828492598bfd23bbc09e16040b1800c81..ef41fa660b00bbe69249187b88d8d6fce26595c8 100644 --- a/packages/component-invite/src/CollectionsInvitations.js +++ b/packages/component-invite/src/CollectionsInvitations.js @@ -119,7 +119,7 @@ const CollectionsInvitations = app => { app.patch( `${basePath}/:invitationId`, authBearer, - require(`${routePath}/delete`)(app.locals.models), + require(`${routePath}/patch`)(app.locals.models), ) } diff --git a/packages/component-user-manager/src/routes/collectionsUsers/get.js b/packages/component-user-manager/src/routes/collectionsUsers/get.js index 3ef86406b0ae21590f2223d0b83c89c12bb9be2c..6bf9b5e5059f1b425c30ab998b3e5f86eb7c641a 100644 --- a/packages/component-user-manager/src/routes/collectionsUsers/get.js +++ b/packages/component-user-manager/src/routes/collectionsUsers/get.js @@ -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',