diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-02-25 19:08:40 +0000 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-02-25 19:08:40 +0000 |
| commit | ae8f6c9cafec89d984acb61365e2031b824ee899 (patch) | |
| tree | 25d27e9c1efac2454387e0d34092545ad9202193 /query-executor.js | |
| parent | 3d9f970ee7de61116150c3182bac134ef681b3d4 (diff) | |
| download | sql-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.js | 2 |
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; |