mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
pr changes
This commit is contained in:
@@ -143,7 +143,12 @@ function awsGet(id) {
|
||||
Key: id
|
||||
};
|
||||
|
||||
return s3.getObject(params).createReadStream();
|
||||
try {
|
||||
return s3.getObject(params).createReadStream();
|
||||
} catch(err) {
|
||||
log.info('GetFailed', 'Get Object from s3 failed.');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function awsSet(id, file, filename, url) {
|
||||
|
||||
Reference in New Issue
Block a user