Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Created June 24, 2017 05:08
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