refactor: Remove duplicated function and use existing invoked function

feat_faro
adriano 2024-05-31 12:15:44 -03:00
parent 9366a186a4
commit 6762c8041d
1 changed files with 2 additions and 2 deletions

View File

@ -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
});