15 lines
393 B
JavaScript
15 lines
393 B
JavaScript
|
var path = require('path');
|
||
|
var database = require(path.join(__dirname, '../../database.js'));
|
||
|
|
||
|
module.exports = class Notice {
|
||
|
getData(params, cb) {
|
||
|
let query = `SELECT c. Cliente FROM Clientes AS c WHERE Id_Cliente = ?`;
|
||
|
database.pool.query(query, [params.userId], (error, result) => {
|
||
|
Object.assign(this, result[0]);
|
||
|
cb();
|
||
|
});
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|