4155-close_tickets #1056

Merged
joan merged 13 commits from 4155-close_tickets into dev 2022-09-21 06:46:32 +00:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 7480bf8a69 - Show all commits

View File

@ -11,7 +11,7 @@ module.exports = Self => {
},
http: {
path: `/closeTicket`,
verb: 'GET'
verb: 'POST'
}
});
@ -19,6 +19,9 @@ module.exports = Self => {
const models = Self.app.models;
const config = await models.OsTicketConfig.findOne();
if (!config.user || !config.password)
return false;
const ostUri = `${config.host}/login.php`;
const con = mysql.createConnection({