Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
20b36f9b
Commit
20b36f9b
authored
6 years ago
by
Alexandru Munteanu
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.coko.foundation:xpub/xpub-faraday
parents
9630fa0a
c634e976
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/component-invite/src/helpers/Collection.js
+3
-0
3 additions, 0 deletions
packages/component-invite/src/helpers/Collection.js
packages/component-invite/src/routes/collectionsInvitations/patch.js
+1
-0
1 addition, 0 deletions
...mponent-invite/src/routes/collectionsInvitations/patch.js
with
4 additions
and
0 deletions
packages/component-invite/src/helpers/Collection.js
+
3
−
0
View file @
20b36f9b
...
...
@@ -18,6 +18,8 @@ module.exports = {
collection
,
)
}
matchingInvitation
.
timestamp
=
Date
.
now
()
await
collection
.
save
()
return
matchingInvitation
},
addAuthor
:
async
(
collection
,
user
,
res
,
url
)
=>
{
...
...
@@ -47,6 +49,7 @@ module.exports = {
updateHandlingEditor
:
async
(
collection
,
isAccepted
)
=>
{
collection
.
handlingEditor
.
hasAnswer
=
true
collection
.
handlingEditor
.
isAccepted
=
isAccepted
collection
.
handlingEditor
.
timestamp
=
Date
.
now
()
await
collection
.
save
()
},
}
This diff is collapsed.
Click to expand it.
packages/component-invite/src/routes/collectionsInvitations/patch.js
+
1
−
0
View file @
20b36f9b
...
...
@@ -29,6 +29,7 @@ module.exports = models => async (req, res) => {
}
await
collectionHelper
.
updateHandlingEditor
(
collection
,
isAccepted
)
invitation
.
timestamp
=
Date
.
now
()
invitation
.
hasAnswer
=
true
const
eic
=
await
userHelper
.
getEditorInChief
(
models
.
User
)
if
(
isAccepted
===
true
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment