refactor: Remove duplicated function and use existing invoked function
parent
9366a186a4
commit
6762c8041d
|
@ -1984,12 +1984,12 @@ async function backUra(whatsappId: any, contactId: any, data: any) {
|
|||
id = lstIds[lstIds.length - 1];
|
||||
}
|
||||
|
||||
const whatsapp = await whatsappCache(whatsappId);
|
||||
// const whatsapp = await whatsappCache(whatsappId);
|
||||
|
||||
await createObject({
|
||||
whatsappId,
|
||||
contactId,
|
||||
identifier: whatsapp?.number ? `ura_${whatsapp?.number}` : "ura",
|
||||
identifier: _whatsapp?.number ? `ura_${_whatsapp?.number}` : "ura",
|
||||
value: id,
|
||||
history
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue