fix(chat): clean up code formatting by removing unnecessary blank lines in chat controller
Some checks failed
Check Code Quality / check-lint-and-build (push) Has been cancelled
Build Docker image / Build and Deploy (push) Has been cancelled
Security Scan / CodeQL Analysis (javascript) (push) Has been cancelled
Security Scan / Dependency Review (push) Has been cancelled

This commit is contained in:
Davidson Gomes
2025-12-12 17:57:44 -03:00
parent 3325044500
commit 6f2bef678c
3 changed files with 8 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ export class ChatController {
remoteJid: data.remoteJid, remoteJid: data.remoteJid,
}; };
return await this.waMonitor.waInstances[instanceName].baileysDecryptPollVote(pollCreationMessageKey); return await this.waMonitor.waInstances[instanceName].baileysDecryptPollVote(pollCreationMessageKey);
}
public async fetchChannels({ instanceName }: InstanceDto, query: Query<Contact>) { public async fetchChannels({ instanceName }: InstanceDto, query: Query<Contact>) {
return await this.waMonitor.waInstances[instanceName].fetchChannels(query); return await this.waMonitor.waInstances[instanceName].fetchChannels(query);

View File

@@ -5382,6 +5382,7 @@ export class BaileysStartupService extends ChannelStartupService {
this.logger.error(`Error decrypting poll votes: ${error}`); this.logger.error(`Error decrypting poll votes: ${error}`);
throw new InternalServerErrorException('Error decrypting poll votes', error.toString()); throw new InternalServerErrorException('Error decrypting poll votes', error.toString());
} }
}
public async fetchChannels(query: Query<Contact>) { public async fetchChannels(query: Query<Contact>) {
const page = Number((query as any)?.page ?? 1); const page = Number((query as any)?.page ?? 1);

View File

@@ -290,6 +290,10 @@ export class ChatRouter extends RouterBroker {
schema: decryptPollVoteSchema, schema: decryptPollVoteSchema,
ClassRef: DecryptPollVoteDto, ClassRef: DecryptPollVoteDto,
execute: (instance, data) => chatController.decryptPollVote(instance, data), execute: (instance, data) => chatController.decryptPollVote(instance, data),
});
return res.status(HttpStatus.OK).json(response);
})
.post(this.routerPath('findChannels'), ...guards, async (req, res) => { .post(this.routerPath('findChannels'), ...guards, async (req, res) => {
const response = await this.dataValidate({ const response = await this.dataValidate({
request: req, request: req,