@@ -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 ,
0 commit comments