In fileProcessingUtils.js, common.deleteFile is called with the following 5 parameters: common.deleteFile(dynamoDB, s3, setRegion, file, callback);. However, deleteFile in common.js is defined with the following 4 parameters deleteFile(dynamoDB, region, file, callback). This is a bug and leads to an error when calling node processedFiles.js --delete ....
Neither s3 or region is used in the deleteFile so I removed that attribute from both the common.js and fileProcessingUtils.js files. Now, the same 3 attributes are defined/called in common.js and fileProcessingUtils.js: dynamoDB, file, and callback.
Fix typo in error message and syntax of commands in index.js to match syntax defined in unlockBatch.js and processedFiles.js
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
fileProcessingUtils.js
,common.deleteFile
is called with the following 5 parameters:common.deleteFile(dynamoDB, s3, setRegion, file, callback);
. However,deleteFile
incommon.js
is defined with the following 4 parametersdeleteFile(dynamoDB, region, file, callback)
. This is a bug and leads to an error when callingnode processedFiles.js --delete ...
.s3
orregion
is used in thedeleteFile
so I removed that attribute from both thecommon.js
andfileProcessingUtils.js
files. Now, the same 3 attributes are defined/called incommon.js
andfileProcessingUtils.js
:dynamoDB
,file
, andcallback
.index.js
to match syntax defined inunlockBatch.js
andprocessedFiles.js
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.