Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Created June 24, 2017 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/f517e9be00eda1cb898f4b762293ad73 to your computer and use it in GitHub Desktop.
Save nolanlawson/f517e9be00eda1cb898f4b762293ad73 to your computer and use it in GitHub Desktop.
plunkr edited
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