Browse Source

change update query

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
b3dae3361c
  1. 2
      dist/src/network/receive.js
  2. 2
      dist/src/network/receive.js.map
  3. 2
      src/network/receive.ts

2
dist/src/network/receive.js

@ -242,7 +242,7 @@ function uniqueifyAlias(payload, sender, chat, owner) {
console.log("UPDATE THE CHAT MEMBER", senderContactId, chat.id);
const theChatMember = yield models_1.models.ChatMember.findOne({ where: { chatId: chat.id, contactId: senderContactId } });
console.log(theChatMember.dataValues);
yield theChatMember.update({ lastAlias: final_sender_alias }, { where: { chatId: chat.id, contactId: senderContactId } });
yield models_1.models.ChatMember.update({ lastAlias: final_sender_alias }, { where: { chatId: chat.id, contactId: senderContactId } });
}
payload.sender.alias = final_sender_alias;
return payload;

2
dist/src/network/receive.js.map

File diff suppressed because one or more lines are too long

2
src/network/receive.ts

@ -218,7 +218,7 @@ async function uniqueifyAlias(payload, sender, chat, owner):Promise<Object> {
console.log("UPDATE THE CHAT MEMBER",senderContactId,chat.id)
const theChatMember = await models.ChatMember.findOne({where:{chatId:chat.id,contactId:senderContactId}})
console.log(theChatMember.dataValues)
await theChatMember.update(
await models.ChatMember.update(
{lastAlias:final_sender_alias},
{where:{chatId:chat.id,contactId:senderContactId}}
)

Loading…
Cancel
Save