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

Merge branch 'master' of gitlab.coko.foundation:xpub/xpub-faraday

parents a054327e 808b0218
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,9 @@ const setupManuscriptTeam = async (models, user, collectionId, role) => { ...@@ -52,7 +52,9 @@ const setupManuscriptTeam = async (models, user, collectionId, role) => {
) )
if (foundTeam !== undefined) { if (foundTeam !== undefined) {
foundTeam.members.push(user.id) if (!foundTeam.members.includes(user.id)) {
foundTeam.members.push(user.id)
}
try { try {
foundTeam = await foundTeam.save() foundTeam = await foundTeam.save()
......
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