Migrate from schema_version to user_version

This commit is contained in:
Scott Nonnenberg 2019-08-20 06:24:43 -07:00
parent d3d2b0ec52
commit edf66f7552
2 changed files with 123 additions and 40 deletions

View file

@ -42,7 +42,9 @@ function initialize() {
console.log(
`sql channel error with call ${callName}: ${errorForDisplay}`
);
event.sender.send(`${SQL_CHANNEL_KEY}-done`, jobId, errorForDisplay);
if (!event.sender.isDestroyed()) {
event.sender.send(`${SQL_CHANNEL_KEY}-done`, jobId, errorForDisplay);
}
}
});