Skip to content

Commit 82dbc07

Browse files
fix: resolve issues in Copilot review
1 parent 2e7df16 commit 82dbc07

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

apps/meteor/app/api/server/v1/custom-user-status.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { IUserStatus } from '@rocket.chat/core-typings';
1+
import type { ICustomUserStatus } from '@rocket.chat/core-typings';
22
import { CustomUserStatus } from '@rocket.chat/models';
33
import { ajv, validateUnauthorizedErrorResponse, validateBadRequestErrorResponse } from '@rocket.chat/rest-typings';
44
import type { PaginatedRequest, PaginatedResult } from '@rocket.chat/rest-typings';
@@ -56,28 +56,28 @@ const customUserStatusEndpoints = API.v1.get(
5656
response: {
5757
200: ajv.compile<
5858
PaginatedResult<{
59-
statuses: IUserStatus[];
59+
statuses: ICustomUserStatus[];
6060
}>
6161
>({
6262
type: 'object',
6363
properties: {
6464
statuses: {
6565
type: 'array',
6666
items: {
67-
$ref: '#/components/schemas/IUserStatus',
67+
$ref: '#/components/schemas/ICustomUserStatus',
6868
},
6969
},
7070
count: {
7171
type: 'number',
72-
description: 'The number of sounds returned in this response.',
72+
description: 'The number of custom user statuses returned in this response.',
7373
},
7474
offset: {
7575
type: 'number',
76-
description: 'The number of sounds that were skipped in this response.',
76+
description: 'The number of custom user statuses that were skipped in this response.',
7777
},
7878
total: {
7979
type: 'number',
80-
description: 'The total number of sounds that match the query.',
80+
description: 'The total number of custom user statuses that match the query.',
8181
},
8282
success: {
8383
type: 'boolean',

packages/core-typings/src/Ajv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import typia from 'typia';
22

33
import type { ICustomSound } from './ICustomSound';
4+
import type { ICustomUserStatus } from './ICustomUserStatus';
45
import type { IInvite } from './IInvite';
56
import type { IMessage } from './IMessage';
67
import type { IOAuthApps } from './IOAuthApps';
78
import type { IPermission } from './IPermission';
89
import type { ISubscription } from './ISubscription';
9-
import type { IUserStatus } from './IUserStatus';
1010

1111
export const schemas = typia.json.schemas<
12-
[ISubscription | IInvite | ICustomSound | IMessage | IOAuthApps | IPermission | IUserStatus],
12+
[ISubscription | IInvite | ICustomSound | IMessage | IOAuthApps | IPermission | ICustomUserStatus],
1313
'3.0'
1414
>();

0 commit comments

Comments
 (0)