mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-19 09:53:36 -06:00
feat: return labels in findChats
This commit is contained in:
parent
1dbf0b7729
commit
f27e2ce2e8
@ -702,6 +702,7 @@ export class ChannelStartupService {
|
|||||||
) as "updatedAt",
|
) as "updatedAt",
|
||||||
"Chat"."createdAt" as "windowStart",
|
"Chat"."createdAt" as "windowStart",
|
||||||
"Chat"."createdAt" + INTERVAL '24 hours' as "windowExpires",
|
"Chat"."createdAt" + INTERVAL '24 hours' as "windowExpires",
|
||||||
|
"Chat"."labels" as "labels",
|
||||||
CASE
|
CASE
|
||||||
WHEN "Chat"."createdAt" + INTERVAL '24 hours' > NOW() THEN true
|
WHEN "Chat"."createdAt" + INTERVAL '24 hours' > NOW() THEN true
|
||||||
ELSE false
|
ELSE false
|
||||||
@ -764,6 +765,7 @@ export class ChannelStartupService {
|
|||||||
windowExpires: contact.windowExpires,
|
windowExpires: contact.windowExpires,
|
||||||
windowActive: contact.windowActive,
|
windowActive: contact.windowActive,
|
||||||
lastMessage: lastMessage ? this.cleanMessageData(lastMessage) : undefined,
|
lastMessage: lastMessage ? this.cleanMessageData(lastMessage) : undefined,
|
||||||
|
labels: contact.labels,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user