Skip to content

Commit 86fc9fb

Browse files
Merge branch 'develop' into groupJid-query-or-body
2 parents 9bdbfc6 + 28a7d9c commit 86fc9fb

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 1.4.6 (homolog)
1+
# 1.4.6 (2023-07-26 17:54)
22

33
### Fixed
44

src/whatsapp/abstract/abstract.router.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ export abstract class RouterBroker {
110110
if (request.query?.groupJid) {
111111
groupJid = request.query.groupJid;
112112
} else {
113-
throw new BadRequestException(
114-
'The group id needs to be informed in the query',
115-
'ex: "groupJid=120362@g.us"',
116-
);
113+
throw new BadRequestException('The group id needs to be informed in the query', 'ex: "groupJid=120362@g.us"');
117114
}
118115
}
119116

src/whatsapp/controllers/instance.controller.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,12 @@ export class InstanceController {
5555
try {
5656
this.logger.verbose('requested createInstance from ' + instanceName + ' instance');
5757

58-
if (instanceName !== instanceName.toLowerCase().replace(/[^a-z0-9]/g, '')) {
59-
throw new BadRequestException('The instance name must be lowercase and without special characters');
60-
}
61-
6258
this.logger.verbose('checking duplicate token');
6359
await this.authService.checkDuplicateToken(token);
6460

6561
this.logger.verbose('creating instance');
6662
const instance = new WAStartupService(this.configService, this.eventEmitter, this.repository, this.cache);
67-
instance.instanceName = instanceName
68-
.toLowerCase()
69-
.replace(/[^a-z0-9]/g, '')
70-
.replace(' ', '');
63+
instance.instanceName = instanceName;
7164

7265
this.logger.verbose('instance: ' + instance.instanceName + ' created');
7366

0 commit comments

Comments
 (0)