shevchenkos / DynamoDbBackUp

46 stars 23 forks source link

Fix JSON.stringified Binary data on restore resulting in InvalidParameterType error #53

Closed nathaniel-holder closed 6 years ago

nathaniel-holder commented 6 years ago

This fix addresses an error when restoring binary data that has been JSON.stringified to look like this: "text":{"B":{"type":"Buffer","data":[1,2,2,0,120,107,142,198,202,199,86,173,163,235,190,18,213,63,147,177,0,244,159,89,100,38,251,211]}}

Before this fix, restoring resulted in this error: InvalidParameterType Solves Issue #51 and tested on my staging environment.