Browse Source

fix

bugfix/timeout-logging
Evan Feenstra 5 years ago
parent
commit
143c0a3b8d
  1. 2
      api/controllers/chats.ts
  2. 2
      dist/api/controllers/chats.js
  3. 2
      dist/api/controllers/chats.js.map

2
api/controllers/chats.ts

@ -30,7 +30,7 @@ export async function kickChatMember(req, res){
chatId, contactId,
}})
const contact = await models.Concat.findOne({where:{id:contactId}})
const contact = await models.Contact.findOne({where:{id:contactId}})
const members = {
[contact.publicKey]: {key:contact.contactKey, alias:contact.alias}
}

2
dist/api/controllers/chats.js

@ -38,7 +38,7 @@ function kickChatMember(req, res) {
yield models_1.models.ChatMember.destroy({ where: {
chatId, contactId,
} });
const contact = yield models_1.models.Concat.findOne({ where: { id: contactId } });
const contact = yield models_1.models.Contact.findOne({ where: { id: contactId } });
const members = {
[contact.publicKey]: { key: contact.contactKey, alias: contact.alias }
};

2
dist/api/controllers/chats.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save