aboutsummaryrefslogtreecommitdiff
path: root/query-executor.js
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-02-25 19:08:40 +0000
committerJames Barnett <noreply@jamesbarnett.xyz>2018-02-25 19:08:40 +0000
commitae8f6c9cafec89d984acb61365e2031b824ee899 (patch)
tree25d27e9c1efac2454387e0d34092545ad9202193 /query-executor.js
parent3d9f970ee7de61116150c3182bac134ef681b3d4 (diff)
downloadsql-plus-plus-ae8f6c9cafec89d984acb61365e2031b824ee899.tar.xz
sql-plus-plus-ae8f6c9cafec89d984acb61365e2031b824ee899.zip
Get query executors by id in main.js rather than index
This ensures no concurrency issues during connection restore on app start
Diffstat (limited to 'query-executor.js')
-rw-r--r--query-executor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/query-executor.js b/query-executor.js
index ee7552b..b9fb561 100644
--- a/query-executor.js
+++ b/query-executor.js
@@ -5,7 +5,7 @@ const { Pool } = require("pg");
const connectionTestQuery = "SELECT now()";
-const executorId = require("uuid/v1")();
+const executorId = remote.getCurrentWindow().executorId;
const connectionConfig = remote.getCurrentWindow().connectionConfig;