From b07fa79109398128299d901222ecc8da78aaecea Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 6 Oct 2022 10:25:49 +0200 Subject: [PATCH] deleted printServer --- back/methods/printServer/main.js | 13 ------------- back/methods/printServer/sql/printQueue.sql | 2 -- 2 files changed, 15 deletions(-) delete mode 100644 back/methods/printServer/main.js delete mode 100644 back/methods/printServer/sql/printQueue.sql diff --git a/back/methods/printServer/main.js b/back/methods/printServer/main.js deleted file mode 100644 index 3f60d51ac..000000000 --- a/back/methods/printServer/main.js +++ /dev/null @@ -1,13 +0,0 @@ -const ParameterizedSQL = require('loopback-connector').ParameterizedSQL; - -async function printServer(){ - const stmt = new ParameterizedSQL( - `SELECT * FROM campaign`); - stmt.merge(conn.makeWhere(filter.where)); - stmt.merge('GROUP BY code'); - stmt.merge(conn.makePagination(filter)); - - return conn.executeStmt(stmt); -} - -setInterval(printServer, 2000); \ No newline at end of file diff --git a/back/methods/printServer/sql/printQueue.sql b/back/methods/printServer/sql/printQueue.sql deleted file mode 100644 index aced591aa..000000000 --- a/back/methods/printServer/sql/printQueue.sql +++ /dev/null @@ -1,2 +0,0 @@ -SELECT * - FROM vn.printQueue; \ No newline at end of file