Compare commits

...

2 Commits

2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,17 @@
import { QueryInterface, DataTypes } from "sequelize";
module.exports = {
up: (queryInterface: QueryInterface) => {
return queryInterface.changeColumn("SettingTickets", "message", {
type: DataTypes.STRING(3000),
allowNull: true
});
},
down: (queryInterface: QueryInterface) => {
return queryInterface.changeColumn("SettingTickets", "message", {
type: DataTypes.STRING,
allowNull: true
});
}
};

View File

@ -438,7 +438,7 @@ const _clear_lst = () => {
}; };
const handleMessage = async (msg: any, wbot: any): Promise<void> => { const handleMessage = async (msg: any, wbot: any): Promise<void> => {
if (!msg.fromMe) { // if (!msg.fromMe) {
_clear_lst(); _clear_lst();
let index = lst.findIndex((x: any) => x.id == msg.id.id); let index = lst.findIndex((x: any) => x.id == msg.id.id);
@ -459,7 +459,7 @@ const handleMessage = async (msg: any, wbot: any): Promise<void> => {
// console.log('LIST OF ID MESSAGE lst: ', lst) // console.log('LIST OF ID MESSAGE lst: ', lst)
} // }
if (!isValidMsg(msg)) { if (!isValidMsg(msg)) {
return; return;