TEST: Realizado testes de fechamento de Tickets GLPI - > HubSoft
This commit is contained in:
parent
6acd5369da
commit
77d07eadcc
@ -1,4 +1,4 @@
|
||||
const ticketService = require('../services/ticketService.js');
|
||||
const {fechaTicket} = require('../services/ticketService.js');
|
||||
const { logInfo, logError } = require('../utils/logger.js');
|
||||
|
||||
/**
|
||||
@ -27,7 +27,7 @@ const closeTicket = async (req, res) => {
|
||||
|
||||
const ticketId = bodyRequest.item.items_id;
|
||||
logInfo(`Ticket ${ticketId} acionado para encerramento.`);
|
||||
const closingTicket = await ticketService.fechaTicket(bodyRequest);
|
||||
const closingTicket = await fechaTicket(bodyRequest);
|
||||
res.status(200).json(closingTicket);
|
||||
});
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ app.listen(PORT, () => {
|
||||
cron.schedule('*/5 * * * *', async () => {
|
||||
logInfo('CRON: Iniciando processamento de atendimentos...');
|
||||
try {
|
||||
await processaAtendimentos(true);
|
||||
await processaAtendimentos();
|
||||
logInfo('CRON: Processamento de atendimentos concluído com sucesso.');
|
||||
} catch (error) {
|
||||
logError('CRON: Erro durante o processamento de atendimentos.', error);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user