mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 04:12:23 -06:00
Adjust search for chats, messages and contacts
This commit is contained in:
@@ -146,7 +146,6 @@ export class ChatRouter extends RouterBroker {
|
||||
|
||||
return res.status(HttpStatus.CREATED).json(response);
|
||||
})
|
||||
// TODO: realizar filtro pelo postgres corretamente
|
||||
.post(this.routerPath('findContacts'), ...guards, async (req, res) => {
|
||||
const response = await this.dataValidate<Query<Contact>>({
|
||||
request: req,
|
||||
@@ -168,7 +167,6 @@ export class ChatRouter extends RouterBroker {
|
||||
|
||||
return res.status(HttpStatus.OK).json(response);
|
||||
})
|
||||
// TODO: realizar filtro pelo postgres corretamente
|
||||
.post(this.routerPath('findStatusMessage'), ...guards, async (req, res) => {
|
||||
const response = await this.dataValidate<Query<MessageUpdate>>({
|
||||
request: req,
|
||||
@@ -179,8 +177,7 @@ export class ChatRouter extends RouterBroker {
|
||||
|
||||
return res.status(HttpStatus.OK).json(response);
|
||||
})
|
||||
// TODO: realizar filtro pelo postgres corretamente
|
||||
.get(this.routerPath('findChats'), ...guards, async (req, res) => {
|
||||
.post(this.routerPath('findChats'), ...guards, async (req, res) => {
|
||||
const response = await this.dataValidate<InstanceDto>({
|
||||
request: req,
|
||||
schema: null,
|
||||
|
||||
Reference in New Issue
Block a user