fix: username (Post as) field is not being updated in incoming webhook integration panel (#34085)

Co-authored-by: Guilherme Gazzo <5263975+ggazzo@users.noreply.github.com>
pull/34104/head
Hiago Hubert 1 year ago committed by GitHub
parent a11f41e1da
commit 2c2a35af24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/meteor/app/integrations/server/methods/incoming/updateIncomingIntegration.ts

@ -23,6 +23,7 @@ declare module '@rocket.chat/ddp-client' {
}
Meteor.methods<ServerMethods>({
// eslint-disable-next-line complexity
async updateIncomingIntegration(integrationId, integration) {
if (!this.userId) {
throw new Meteor.Error('error-invalid-user', 'Invalid user', {
@ -175,6 +176,7 @@ Meteor.methods<ServerMethods>({
emoji: integration.emoji,
alias: integration.alias,
channel: channels,
...('username' in integration && { username: integration.username }),
...(isFrozen
? {}
: {

Loading…
Cancel
Save