added express-promise-wrap to catch and respond to unhandled exceptions immediately, previously the requests just hanged

This commit is contained in:
azivner
2018-01-07 09:35:44 -05:00
parent 20b1357be6
commit 743d72a0c3
26 changed files with 157 additions and 134 deletions

View File

@@ -166,8 +166,6 @@ async function saveNoteImages(noteId, noteText, sourceId) {
let match;
while (match = re.exec(noteText)) {
console.log(match);
const imageId = match[1];
const existingNoteImage = existingNoteImages.find(ni => ni.image_id === imageId);