Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
59e0336474
|
@ -4,7 +4,14 @@ const smtp = require('../core/smtp');
|
||||||
const config = require('../core/config');
|
const config = require('../core/config');
|
||||||
|
|
||||||
module.exports = app => {
|
module.exports = app => {
|
||||||
app.get('/api/closure', async function(request, response) {
|
app.get('/api/closure/by-ticket', async function(request, response) {
|
||||||
|
});
|
||||||
|
|
||||||
|
app.get('/api/closure/all', async function(request, response) {
|
||||||
|
response.status(200).json({
|
||||||
|
message: 'Task executed successfully'
|
||||||
|
});
|
||||||
|
|
||||||
const failedtickets = [];
|
const failedtickets = [];
|
||||||
const tickets = await db.rawSql(`
|
const tickets = await db.rawSql(`
|
||||||
SELECT
|
SELECT
|
||||||
|
@ -58,9 +65,5 @@ module.exports = app => {
|
||||||
html: body
|
html: body
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
response.status(200).json({
|
|
||||||
message: 'Closure executed successfully'
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue