Skip to content

Commit cf2ebda

Browse files
committed
todo
1 parent dbb309e commit cf2ebda

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/api/routes/chat.router.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export class ChatRouter extends RouterBroker {
115115

116116
return res.status(HttpStatus.CREATED).json(response);
117117
})
118+
// TODO: corrigir updateMessage para medias tambem
118119
.post(this.routerPath('updateMessage'), ...guards, async (req, res) => {
119120
const response = await this.dataValidate<UpdateMessageDto>({
120121
request: req,
@@ -145,6 +146,7 @@ export class ChatRouter extends RouterBroker {
145146

146147
return res.status(HttpStatus.CREATED).json(response);
147148
})
149+
// TODO: realizar filtro pelo postgres corretamente
148150
.post(this.routerPath('findContacts'), ...guards, async (req, res) => {
149151
const response = await this.dataValidate<Query<Contact>>({
150152
request: req,
@@ -155,6 +157,7 @@ export class ChatRouter extends RouterBroker {
155157

156158
return res.status(HttpStatus.OK).json(response);
157159
})
160+
// TODO: realizar filtro pelo postgres corretamente
158161
.post(this.routerPath('findMessages'), ...guards, async (req, res) => {
159162
const response = await this.dataValidate<Query<Message>>({
160163
request: req,
@@ -165,6 +168,7 @@ export class ChatRouter extends RouterBroker {
165168

166169
return res.status(HttpStatus.OK).json(response);
167170
})
171+
// TODO: realizar filtro pelo postgres corretamente
168172
.post(this.routerPath('findStatusMessage'), ...guards, async (req, res) => {
169173
const response = await this.dataValidate<Query<MessageUpdate>>({
170174
request: req,
@@ -175,6 +179,7 @@ export class ChatRouter extends RouterBroker {
175179

176180
return res.status(HttpStatus.OK).json(response);
177181
})
182+
// TODO: realizar filtro pelo postgres corretamente
178183
.get(this.routerPath('findChats'), ...guards, async (req, res) => {
179184
const response = await this.dataValidate<InstanceDto>({
180185
request: req,

src/validate/validate.schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { JSONSchema7 } from 'json-schema';
22

33
// Integrations Schema
4+
// TODO: rever todas as integrações e garantir o funcionamento perfeito
45
export * from '../api/integrations/chatwoot/validate/chatwoot.schema';
56
export * from '../api/integrations/rabbitmq/validate/rabbitmq.schema';
67
export * from '../api/integrations/sqs/validate/sqs.schema';

0 commit comments

Comments
 (0)