Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions packages/rest-typings/src/v1/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ajv = new Ajv({
coerceTypes: true,
});

type UsersInfo = { userId?: IUser['_id']; userName?: IUser['username'] };
type UsersInfo = { userId?: IUser['_id']; username?: IUser['username'] };

const UsersInfoSchema = {
type: 'object',
Expand All @@ -14,7 +14,7 @@ const UsersInfoSchema = {
type: 'string',
nullable: true,
},
userName: {
username: {
type: 'string',
nullable: true,
},
Expand Down