Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal committed Jan 22, 2024
1 parent 8278597 commit 2b0cab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions packages/rest-typings/src/v1/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,7 @@ export type UsersEndpoints = {

'/v1/users.getNames': {
GET: (params: UsersGetNamesParamsGET) => {
users: {
userId: string;
username: string;
name: string;
}[];
users: Pick<IUser, '_id' | 'username' | 'name'>[];
};
};
};
Expand Down
4 changes: 1 addition & 3 deletions packages/rest-typings/src/v1/users/UsersGetNamesParamsGET.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ajv = new Ajv({
export type UsersGetNamesParamsGET = { userIds: string[] } | { usernames: string[] };

const UsersGetNamesParamsGETSchema = {
anyOf: [
oneOf: [
{
type: 'object',
properties: {
Expand All @@ -19,7 +19,6 @@ const UsersGetNamesParamsGETSchema = {
},
},
required: ['userIds'],
additionalProperties: false,
},
{
type: 'object',
Expand All @@ -32,7 +31,6 @@ const UsersGetNamesParamsGETSchema = {
},
},
required: ['usernames'],
additionalProperties: false,
},
],
};
Expand Down

0 comments on commit 2b0cab0

Please sign in to comment.