Merge branch 'develop' of github.com:EvolutionAPI/evolution-api into develop

This commit is contained in:
Davidson Gomes 2024-02-13 08:33:08 -03:00
commit cecbb7c34e

View File

@ -1734,6 +1734,7 @@ export class WAStartupService {
{
messages,
chats,
contacts,
}: {
chats: Chat[];
contacts: Contact[];
@ -1846,6 +1847,17 @@ export class WAStartupService {
);
}
await this.contactHandle['contacts.upsert'](
contacts
.filter((c) => !!c.notify ?? !!c.name)
.map((c) => ({
id: c.id,
name: c.name ?? c.notify,
})),
database,
);
contacts = undefined;
messages = undefined;
chats = undefined;
} catch (error) {