Skip to content

Commit

Permalink
[FIX] Wrong argument name preventing Omnichannel Chat Forward to User (
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanogueira authored and ggazzo committed Jun 9, 2022
1 parent 7a5f1f5 commit a17e366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const ForwardChatModal = ({
let uid;

if (username) {
const { user } = await getUserData({ userName: username });
const { user } = await getUserData({ username });
uid = user?._id;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/rest-typings/src/v1/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ITeam, IUser } from '@rocket.chat/core-typings';

export type UsersEndpoints = {
'users.info': {
GET: (params: { userId?: IUser['_id']; userName?: IUser['username'] }) => {
GET: (params: { userId?: IUser['_id']; username?: IUser['username'] }) => {
user: IUser;
};
};
Expand Down

0 comments on commit a17e366

Please sign in to comment.