AWS Plugin: Lambda should return list of files written to S3

This commit is contained in:
Jermolene
2017-08-29 21:41:50 +01:00
parent 06ea4060cb
commit 08ae7321c1
3 changed files with 17 additions and 3 deletions

View File

@@ -8,6 +8,10 @@ TiddlyWiki for AWS
exports.handler = function(event,context,callback) {
// Initialise the boot prefix
global.$tw = _bootprefix();
// Initialise the returned results
$tw["lambda-result"] = {
"files-written": []
};
// Some default package info
$tw.packageInfo = lambdaPackageInfo;
// Load any tiddlers from the package
@@ -21,6 +25,6 @@ exports.handler = function(event,context,callback) {
// Boot the TW5 app
_boot($tw);
$tw.boot.boot(function() {
callback(null,"TiddlyWiki execution successful");
callback(null,$tw["lambda-result"]);
});
}