@tiledesk/tiledesk-server 2.3.38 → 2.3.40

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,11 +1,18 @@
1
1
 
2
- 💥 TILEDESK SERVER v2.3.35 💥
2
+ 💥 TILEDESK SERVER v2.3.39 💥
3
3
  🚀 TAGGED AND PUBLISHED ON NPM 🚀
4
4
  🚀 IN PRODUCTION 🚀
5
- (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.35)
5
+ (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.39)
6
6
 
7
- # Untagged
7
+ # 2.3.39
8
+ - logfix
9
+
10
+ # 2.3.38
11
+ - JobManager require fix
12
+
13
+ # 2.3.37
8
14
  - Created a job worker for geo db, activities and email notification
15
+ - users_util lookup fix
9
16
 
10
17
  # 2.3.36
11
18
  - BugFix email secure with false value. https://tiledesk.discourse.group/t/error-sending-email/180
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.3.38",
4
+ "version": "2.3.40",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -110,10 +110,10 @@ class ActivityArchiver {
110
110
  project_user = event.updatedProject_userPopulated;
111
111
  }
112
112
 
113
- winston.info('ActivityArchiver authProjectUserUpdateKey event: ', event);
113
+ winston.debug('ActivityArchiver authProjectUserUpdateKey event: ', event);
114
114
 
115
115
  if (!event.req.user) {
116
- return winston.info('ActivityArchiver skipping archive empty user'); //from i think chat21webhook
116
+ return winston.debug('ActivityArchiver skipping archive empty user'); //from i think chat21webhook
117
117
  }
118
118
  var activity = new Activity({actor: {type:"user", id: event.req.user._id, name: event.req.user.fullName },
119
119
  verb: "PROJECT_USER_UPDATE", actionObj: event.req.body,
@@ -354,7 +354,7 @@ sendToUserEmailChannelEmail(projectid, message) {
354
354
  });
355
355
 
356
356
  } catch(e) {
357
- winston.error("Error sending email", {error:e, projectid:projectid, message:message});
357
+ winston.error("Error sending requestNotification email", {error:e, projectid:projectid, message:message});
358
358
  }
359
359
  }
360
360
 
@@ -459,7 +459,7 @@ sendToFollower(projectid, message) {
459
459
  }
460
460
  })
461
461
  } catch (e) {
462
- winston.warn("Error sending email", {error:e, projectid:projectid, message: message, savedRequest:savedRequest}); //it's better to view error email at this stage
462
+ winston.warn("Error sending requestNotification email", {error:e, projectid:projectid, message: message, savedRequest:savedRequest}); //it's better to view error email at this stage
463
463
  }
464
464
  }
465
465
 
@@ -595,7 +595,7 @@ sendToAgentEmailChannelEmail(projectid, message) {
595
595
  //@DISABLED_CACHE .cache(cacheUtil.defaultTTL, "users:id:"+assignedId) //user_cache
596
596
  .exec(function (err, user) {
597
597
  if (err) {
598
- winston.error("Error sending email to " + savedRequest.participants[0], err);
598
+ winston.error("Error sending requestNotification email to " + savedRequest.participants[0], err);
599
599
  }
600
600
  if (!user) {
601
601
  winston.warn("User not found", savedRequest.participants[0]);
@@ -625,7 +625,7 @@ sendToAgentEmailChannelEmail(projectid, message) {
625
625
  });
626
626
 
627
627
  } catch (e) {
628
- winston.warn("Error sending email", {error:e, projectid:projectid, message: message, savedRequest:savedRequest}); //it's better to view error email at this stage
628
+ winston.warn("Error sending requestNotification email", {error:e, projectid:projectid, message: message, savedRequest:savedRequest}); //it's better to view error email at this stage
629
629
  }
630
630
  //end send email
631
631
 
@@ -666,7 +666,7 @@ sendEmailChannelTakingNotification(projectid, request) {
666
666
  });
667
667
 
668
668
  } catch(e) {
669
- winston.error("Error sending email", {error:e, projectid:projectid, message:message});
669
+ winston.error("Error sending requestNotification email", {error:e, projectid:projectid, message:message});
670
670
  }
671
671
  }
672
672
 
@@ -820,7 +820,7 @@ sendUserEmail(projectid, message) {
820
820
  });
821
821
 
822
822
  } catch(e) {
823
- winston.error("Error sending email", {error:e, projectid:projectid, message:message});
823
+ winston.error("Error sending requestNotification email", {error:e, projectid:projectid, message:message});
824
824
  }
825
825
  }
826
826
 
@@ -970,7 +970,7 @@ sendAgentEmail(projectid, savedRequest) {
970
970
  //@DISABLED_CACHE .cache(cacheUtil.defaultTTL, "users:id:"+assignedId) //user_cache
971
971
  .exec(function (err, user) {
972
972
  if (err) {
973
- winston.error("Error sending email to " + savedRequest.participants[0], err);
973
+ winston.error("Error sending requestNotification email to " + savedRequest.participants[0], err);
974
974
  }
975
975
  if (!user) {
976
976
  winston.warn("User not found", savedRequest.participants[0]);
@@ -1018,7 +1018,7 @@ sendAgentEmail(projectid, savedRequest) {
1018
1018
  });
1019
1019
 
1020
1020
  } catch (e) {
1021
- winston.warn("Error sending email", {error:e, projectid:projectid, savedRequest:savedRequest}); //it's better to view error email at this stage
1021
+ winston.warn("Error sending requestNotification email", {error:e, projectid:projectid, savedRequest:savedRequest}); //it's better to view error email at this stage
1022
1022
  }
1023
1023
  //end send email
1024
1024
 
@@ -272,7 +272,7 @@ class EmailService {
272
272
  if (mail.callback){
273
273
  mail.callback(error, {info:info});
274
274
  }
275
- return winston.error("Error sending email ", {error:error, mailOptions:mailOptions});
275
+ return winston.error("Error sending email ", {error:error, mailConfig: mail.config, mailOptions:mailOptions});
276
276
  }
277
277
  winston.verbose('Email sent:', {info: info});
278
278
  winston.debug('Email sent:', {info: info, mailOptions: mailOptions});
package/test/faqRoute.js CHANGED
@@ -18,7 +18,6 @@ const path = require('path');
18
18
 
19
19
  var expect = chai.expect;
20
20
  var assert = chai.assert;
21
- var path = require('path');
22
21
 
23
22
  chai.use(chaiHttp);
24
23