@resolveio/server-lib 3.2.8-newrole → 3.2.9-newrole

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/methods/aws.js +10 -5
  2. package/package.json +1 -1
package/methods/aws.js CHANGED
@@ -359,12 +359,17 @@ function loadAWSMethods(methodManager) {
359
359
  reject('Could not find file');
360
360
  return [2 /*return*/];
361
361
  }
362
- that.callMethodInternal.call(that, 'getSignedUrl', file.key, 900, function (errPDF, resPDF) {
362
+ that.callMethodInternal.call(that, 'getSignedUrl', file.key, 259200, function (errPDF, resPDF) {
363
363
  if (resPDF) {
364
- that.sendEmail(email, index_1.ResolveIOServer.getClientName() + ' File - ' + file.name, 'Attached is the file requested for email.', '', [{
365
- filename: file.name,
366
- path: resPDF
367
- }]);
364
+ if (file.size < 5000000) {
365
+ that.sendEmail(email, index_1.ResolveIOServer.getClientName() + ' File - ' + file.name, 'Attached is the file requested for email.', '', [{
366
+ filename: file.name,
367
+ path: resPDF
368
+ }]);
369
+ }
370
+ else {
371
+ that.sendEmail(email, index_1.ResolveIOServer.getClientName() + ' File - ' + file.name, 'Please click the link to the requested file. ' + resPDF, '');
372
+ }
368
373
  resolve(true);
369
374
  }
370
375
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "3.2.8-newrole",
3
+ "version": "3.2.9-newrole",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {