mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-20 19:19:24 -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,
|
messages,
|
||||||
chats,
|
chats,
|
||||||
|
contacts,
|
||||||
}: {
|
}: {
|
||||||
chats: Chat[];
|
chats: Chat[];
|
||||||
contacts: Contact[];
|
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;
|
messages = undefined;
|
||||||
chats = undefined;
|
chats = undefined;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user