mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 23:59:01 +02:00
Merge pull request #3495 from overleaf/ae-prettier-2
Upgrade Prettier to v2 GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = {
|
||||
return SubscriptionGroupHandler.removeUserFromGroup(
|
||||
subscription._id,
|
||||
userToRemove_id,
|
||||
function(err) {
|
||||
function (err) {
|
||||
if (err != null) {
|
||||
OError.tag(err, 'error removing user from group', {
|
||||
subscriptionId: subscription._id,
|
||||
@@ -46,28 +46,28 @@ module.exports = {
|
||||
removeSelfFromGroup(req, res, next) {
|
||||
const subscriptionId = req.query.subscriptionId
|
||||
const userToRemove_id = AuthenticationController.getLoggedInUserId(req)
|
||||
return SubscriptionLocator.getSubscription(subscriptionId, function(
|
||||
error,
|
||||
subscription
|
||||
) {
|
||||
if (error != null) {
|
||||
return next(error)
|
||||
}
|
||||
|
||||
return SubscriptionGroupHandler.removeUserFromGroup(
|
||||
subscription._id,
|
||||
userToRemove_id,
|
||||
function(err) {
|
||||
if (err != null) {
|
||||
logger.err(
|
||||
{ err, userToRemove_id, subscriptionId },
|
||||
'error removing self from group'
|
||||
)
|
||||
return res.sendStatus(500)
|
||||
}
|
||||
return res.sendStatus(200)
|
||||
return SubscriptionLocator.getSubscription(
|
||||
subscriptionId,
|
||||
function (error, subscription) {
|
||||
if (error != null) {
|
||||
return next(error)
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
return SubscriptionGroupHandler.removeUserFromGroup(
|
||||
subscription._id,
|
||||
userToRemove_id,
|
||||
function (err) {
|
||||
if (err != null) {
|
||||
logger.err(
|
||||
{ err, userToRemove_id, subscriptionId },
|
||||
'error removing self from group'
|
||||
)
|
||||
return res.sendStatus(500)
|
||||
}
|
||||
return res.sendStatus(200)
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user