From 37a079363aaa3de7189f8c4c042bc6412a3d7f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 13 Jun 2018 20:12:21 +0200 Subject: [PATCH] Do not extend from EventEmitter --- app/services/stream_copy.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/services/stream_copy.js b/app/services/stream_copy.js index 8ee0930e..cbcca006 100644 --- a/app/services/stream_copy.js +++ b/app/services/stream_copy.js @@ -1,12 +1,9 @@ -const EventEmitter = require('events'); const PSQL = require('cartodb-psql'); const copyTo = require('pg-copy-streams').to; const copyFrom = require('pg-copy-streams').from; -module.exports = class StreamCopy extends EventEmitter { +module.exports = class StreamCopy { constructor (sql, userDbParams) { - super(); - this.pg = new PSQL(userDbParams); this.sql = sql; this.connectionClosedByClient = false;