mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
nodejs: parentheses around arrow function arguments
This commit is contained in:
@ -121,7 +121,7 @@ users.getAllUsers = function () {
|
||||
// get a user by id specified
|
||||
users.getUser = function (id) {
|
||||
let result = null;
|
||||
this.forEach(user => {
|
||||
this.forEach((user) => {
|
||||
if (user.id == id) {
|
||||
result = user;
|
||||
}
|
||||
@ -132,7 +132,7 @@ users.getUser = function (id) {
|
||||
// get a list of users with their name and email
|
||||
users.getUsersForMentions = function (id) {
|
||||
let result = [];
|
||||
this.forEach(user => {
|
||||
this.forEach((user) => {
|
||||
if (user.id != id && user.name != null && user.email != null) {
|
||||
result.push({
|
||||
email: user.email,
|
||||
|
||||
Reference in New Issue
Block a user