From 9d367b82999c5e296c9eabc53007632903288322 Mon Sep 17 00:00:00 2001 From: sergiodt Date: Wed, 6 Sep 2023 09:22:29 +0200 Subject: [PATCH] refs #5652 feat:itemTrash_new --- back/methods/collection/getAddress.js | 20 -------------------- back/models/collection.js | 1 - 2 files changed, 21 deletions(-) delete mode 100644 back/methods/collection/getAddress.js diff --git a/back/methods/collection/getAddress.js b/back/methods/collection/getAddress.js deleted file mode 100644 index 3fd4b9e6e..000000000 --- a/back/methods/collection/getAddress.js +++ /dev/null @@ -1,20 +0,0 @@ -module.exports = Self => { - Self.remoteMethod('getAddress', { - description: 'Get all activated address last year ', - accessType: 'READ', - returns: { - type: 'Object', - root: true - }, - http: { - path: `/getAddress`, - verb: 'GET' - } - }); - - Self.getAddress = async() => { - const query = `CALL vn.address_getLosesLastYear()`; - const [result] = await Self.rawSql(query); - return result; - }; -}; diff --git a/back/models/collection.js b/back/models/collection.js index 75cdb1174..a41742ee7 100644 --- a/back/models/collection.js +++ b/back/models/collection.js @@ -4,5 +4,4 @@ module.exports = Self => { require('../methods/collection/getSectors')(Self); require('../methods/collection/setSaleQuantity')(Self); require('../methods/collection/previousLabel')(Self); - require('../methods/collection/getAddress')(Self); };