mirror of
https://github.com/immich-app/immich.git
synced 2025-06-08 02:36:22 +02:00
40 lines
2.0 KiB
Diff
40 lines
2.0 KiB
Diff
|
diff --git a/node_modules/postgres/cf/src/connection.js b/node_modules/postgres/cf/src/connection.js
|
||
|
index ee8b1e6..d03b9dd 100644
|
||
|
--- a/node_modules/postgres/cf/src/connection.js
|
||
|
+++ b/node_modules/postgres/cf/src/connection.js
|
||
|
@@ -387,6 +387,8 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
||
|
}
|
||
|
|
||
|
function queryError(query, err) {
|
||
|
+ if (!query || typeof query !== 'object') throw err
|
||
|
+
|
||
|
'query' in err || 'parameters' in err || Object.defineProperties(err, {
|
||
|
stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug },
|
||
|
query: { value: query.string, enumerable: options.debug },
|
||
|
diff --git a/node_modules/postgres/cjs/src/connection.js b/node_modules/postgres/cjs/src/connection.js
|
||
|
index f7f58d1..8a37571 100644
|
||
|
--- a/node_modules/postgres/cjs/src/connection.js
|
||
|
+++ b/node_modules/postgres/cjs/src/connection.js
|
||
|
@@ -385,6 +385,8 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
||
|
}
|
||
|
|
||
|
function queryError(query, err) {
|
||
|
+ if (!query || typeof query !== 'object') throw err
|
||
|
+
|
||
|
'query' in err || 'parameters' in err || Object.defineProperties(err, {
|
||
|
stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug },
|
||
|
query: { value: query.string, enumerable: options.debug },
|
||
|
diff --git a/node_modules/postgres/src/connection.js b/node_modules/postgres/src/connection.js
|
||
|
index 97cc97e..58f5298 100644
|
||
|
--- a/node_modules/postgres/src/connection.js
|
||
|
+++ b/node_modules/postgres/src/connection.js
|
||
|
@@ -385,6 +385,8 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
|
||
|
}
|
||
|
|
||
|
function queryError(query, err) {
|
||
|
+ if (!query || typeof query !== 'object') throw err
|
||
|
+
|
||
|
'query' in err || 'parameters' in err || Object.defineProperties(err, {
|
||
|
stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug },
|
||
|
query: { value: query.string, enumerable: options.debug },
|