@resolveio/server-lib 3.2.8 → 3.2.9
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.
- package/methods/aws.js +10 -5
- 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,
|
|
362
|
+
that.callMethodInternal.call(that, 'getSignedUrl', file.key, 259200, function (errPDF, resPDF) {
|
|
363
363
|
if (resPDF) {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
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 {
|