mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 17:00:13 +01:00
Lint fix
This commit is contained in:
parent
6201809810
commit
dba5de1882
2 changed files with 9 additions and 9 deletions
|
|
@ -1165,7 +1165,7 @@ function cardMembers(userId, doc, fieldNames, modifier) {
|
|||
// Say hello to the new member
|
||||
if (modifier.$addToSet && modifier.$addToSet.members) {
|
||||
memberId = modifier.$addToSet.members;
|
||||
let username = Users.findOne(memberId).username;
|
||||
const username = Users.findOne(memberId).username;
|
||||
if (!_.contains(doc.members, memberId)) {
|
||||
Activities.insert({
|
||||
userId,
|
||||
|
|
@ -1180,7 +1180,7 @@ function cardMembers(userId, doc, fieldNames, modifier) {
|
|||
// Say goodbye to the former member
|
||||
if (modifier.$pull && modifier.$pull.members) {
|
||||
memberId = modifier.$pull.members;
|
||||
let username = Users.findOne(memberId).username;
|
||||
const username = Users.findOne(memberId).username;
|
||||
// Check that the former member is member of the card
|
||||
if (_.contains(doc.members, memberId)) {
|
||||
Activities.insert({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue