diff --git a/apps/meteor/client/components/Omnichannel/modals/ForwardChatModal.tsx b/apps/meteor/client/components/Omnichannel/modals/ForwardChatModal.tsx index 853dd7c7d293..e28465d697e2 100644 --- a/apps/meteor/client/components/Omnichannel/modals/ForwardChatModal.tsx +++ b/apps/meteor/client/components/Omnichannel/modals/ForwardChatModal.tsx @@ -59,7 +59,7 @@ const ForwardChatModal = ({ let uid; if (username) { - const { user } = await getUserData({ userName: username }); + const { user } = await getUserData({ username }); uid = user?._id; } diff --git a/packages/rest-typings/src/v1/users.ts b/packages/rest-typings/src/v1/users.ts index 0f9951f4dfec..e6b69c0ec199 100644 --- a/packages/rest-typings/src/v1/users.ts +++ b/packages/rest-typings/src/v1/users.ts @@ -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; }; };