mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-22 05:12:20 -06:00
fix(chat): clean up code formatting by removing unnecessary blank lines in chat controller
Some checks failed
Some checks failed
This commit is contained in:
@@ -121,6 +121,7 @@ export class ChatController {
|
||||
remoteJid: data.remoteJid,
|
||||
};
|
||||
return await this.waMonitor.waInstances[instanceName].baileysDecryptPollVote(pollCreationMessageKey);
|
||||
}
|
||||
|
||||
public async fetchChannels({ instanceName }: InstanceDto, query: Query<Contact>) {
|
||||
return await this.waMonitor.waInstances[instanceName].fetchChannels(query);
|
||||
|
||||
@@ -5382,6 +5382,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
this.logger.error(`Error decrypting poll votes: ${error}`);
|
||||
throw new InternalServerErrorException('Error decrypting poll votes', error.toString());
|
||||
}
|
||||
}
|
||||
|
||||
public async fetchChannels(query: Query<Contact>) {
|
||||
const page = Number((query as any)?.page ?? 1);
|
||||
|
||||
@@ -290,6 +290,10 @@ export class ChatRouter extends RouterBroker {
|
||||
schema: decryptPollVoteSchema,
|
||||
ClassRef: DecryptPollVoteDto,
|
||||
execute: (instance, data) => chatController.decryptPollVote(instance, data),
|
||||
});
|
||||
|
||||
return res.status(HttpStatus.OK).json(response);
|
||||
})
|
||||
.post(this.routerPath('findChannels'), ...guards, async (req, res) => {
|
||||
const response = await this.dataValidate({
|
||||
request: req,
|
||||
|
||||
Reference in New Issue
Block a user