Created
June 24, 2017 05:08
-
-
Save nolanlawson/f517e9be00eda1cb898f4b762293ad73 to your computer and use it in GitHub Desktop.
plunkr edited
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local.put(mileageDoc).then(function (response) { | |
return Promise.all(storedFiles.map(function(storedFile) { | |
return local.putAttachment(response.id, storedFile.name, response.rev, storedFile, storedFile.type); | |
})); | |
}).then(function () { | |
console.log('done'); | |
}).catch(function (err) { | |
console.log('error', err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment