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); };