fix(Mattermost Node): Fix base url trailing slash error (#6097)
* 🐛 Fix credential base url with trailing slash
* Fix credential test base url with trailing slash
This commit is contained in:
@@ -46,7 +46,7 @@ export class MattermostApi implements ICredentialType {
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{$credentials.baseUrl}}/api/v4',
|
||||
baseURL: '={{$credentials.baseUrl.replace(/\\/$/, "")}}/api/v4',
|
||||
url: '/users',
|
||||
skipSslCertificateValidation: '={{$credentials?.allowUnauthorizedCerts}}',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user