From ae8f6c9cafec89d984acb61365e2031b824ee899 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Sun, 25 Feb 2018 19:08:40 +0000 Subject: Get query executors by id in main.js rather than index This ensures no concurrency issues during connection restore on app start --- query-executor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'query-executor.js') 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; -- cgit v1.2.3