|
|
@ -71,10 +71,8 @@ module.exports = function (User) {
|
|
|
|
let line = '';
|
|
|
|
let line = '';
|
|
|
|
usersData.forEach((user, index) => {
|
|
|
|
usersData.forEach((user, index) => {
|
|
|
|
line += `${fields
|
|
|
|
line += `${fields
|
|
|
|
.map((field) =>
|
|
|
|
.map(field => (isFinite(user[field]) ? `'${user[field]}'` : user[field]))
|
|
|
|
isFinite(user[field]) ? `'${user[field]}'` : user[field]
|
|
|
|
.join(',')}`;
|
|
|
|
)
|
|
|
|
|
|
|
|
.join(",")}`;
|
|
|
|
|
|
|
|
if (showIps) {
|
|
|
|
if (showIps) {
|
|
|
|
userIPs = ips[index] ? ips[index].join(',') : '';
|
|
|
|
userIPs = ips[index] ? ips[index].join(',') : '';
|
|
|
|
line += `,"${userIPs}"\n`;
|
|
|
|
line += `,"${userIPs}"\n`;
|
|
|
|