Skip to content

Commit 6f2bef6

Browse files
committed
fix(chat): clean up code formatting by removing unnecessary blank lines in chat controller
1 parent 3325044 commit 6f2bef6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/api/controllers/chat.controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ export class ChatController {
121121
remoteJid: data.remoteJid,
122122
};
123123
return await this.waMonitor.waInstances[instanceName].baileysDecryptPollVote(pollCreationMessageKey);
124-
124+
}
125+
125126
public async fetchChannels({ instanceName }: InstanceDto, query: Query<Contact>) {
126127
return await this.waMonitor.waInstances[instanceName].fetchChannels(query);
127128
}

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5382,7 +5382,8 @@ export class BaileysStartupService extends ChannelStartupService {
53825382
this.logger.error(`Error decrypting poll votes: ${error}`);
53835383
throw new InternalServerErrorException('Error decrypting poll votes', error.toString());
53845384
}
5385-
5385+
}
5386+
53865387
public async fetchChannels(query: Query<Contact>) {
53875388
const page = Number((query as any)?.page ?? 1);
53885389
const limit = Number((query as any)?.limit ?? (query as any)?.rows ?? 50);

src/api/routes/chat.router.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ export class ChatRouter extends RouterBroker {
290290
schema: decryptPollVoteSchema,
291291
ClassRef: DecryptPollVoteDto,
292292
execute: (instance, data) => chatController.decryptPollVote(instance, data),
293+
});
294+
295+
return res.status(HttpStatus.OK).json(response);
296+
})
293297
.post(this.routerPath('findChannels'), ...guards, async (req, res) => {
294298
const response = await this.dataValidate({
295299
request: req,

0 commit comments

Comments
 (0)