trying to fix bugs in production ongod

This commit is contained in:
Ale 2024-03-15 23:33:28 +01:00
parent 9906e750ef
commit ba6bb87b3f

View file

@ -7,7 +7,6 @@ export default async function sendAsMember(message: Message, database: Database)
const memberRepo: MemberRepo = new MemberRepo(database); const memberRepo: MemberRepo = new MemberRepo(database);
let members: MemberModel[]; let members: MemberModel[];
await memberRepo.getAltersByUserId(message.author.id).then(result => members = result); await memberRepo.getAltersByUserId(message.author.id).then(result => members = result);
if (members === undefined) {return}
members.forEach( async alter => { members.forEach( async alter => {
const pre_prefix = alter.prefix.split("text"); const pre_prefix = alter.prefix.split("text");