mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-18 21:16:29 -06:00
Merge branch 'develop' of github.com:EvolutionAPI/evolution-api into develop
This commit is contained in:
commit
cecbb7c34e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user