mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 03:14:36 +00:00
AWS Plugin: Lambda should return list of files written to S3
This commit is contained in:
@@ -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"]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user