projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use got instead of axios, some cleanup, problem with async context being lost for...
[websub-hub]
/
src
/
db
/
postgres
/
index.js
diff --git
a/src/db/postgres/index.js
b/src/db/postgres/index.js
index e7a006c6d73b5cddff92076653ee37f5548943a4..b07b678728d6b20162a739f5467de5fb17df741c 100644
(file)
--- a/
src/db/postgres/index.js
+++ b/
src/db/postgres/index.js
@@
-68,6
+68,8
@@
class DatabasePostgres extends Database {
// Log errors
pgpInitOptions.error = (err, event) => {
this.logger.error(_fileScope('pgp:error'), '', { err, event });
+
+ // TODO: close connection on err.code === '57P03' database shutting down
};
// Deophidiate column names in-place, log results