Skip to content

Commit f7c5283

Browse files
author
kim
committed
refactor: remove unused import
1 parent 580e348 commit f7c5283

3 files changed

Lines changed: 1 addition & 24 deletions

File tree

src/services/item/item.controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
getAccessible,
2020
getChildren,
2121
getDescendantItems,
22-
getMany,
2322
getOne,
2423
getParentItems,
2524
} from './item.schemas.packed';

src/services/item/item.schemas.packed.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,6 @@ export const getOne = {
5151
response: { [StatusCodes.OK]: packedItemSchemaRef, '4xx': errorSchemaRef },
5252
} as const satisfies FastifySchema;
5353

54-
export const getMany = {
55-
operationId: 'getManyItems',
56-
tags: ['item'],
57-
summary: 'Get many items',
58-
description: 'Get many items by their ids.',
59-
60-
querystring: customType.StrictObject({
61-
id: Type.Array(customType.UUID(), {
62-
maxItems: MAX_TARGETS_FOR_READ_REQUEST,
63-
uniqueItems: true,
64-
}),
65-
}),
66-
response: {
67-
[StatusCodes.OK]: Type.Object({
68-
data: Type.Record(Type.String({ format: 'uuid' }), packedItemSchemaRef),
69-
errors: Type.Array(errorSchemaRef),
70-
}),
71-
'4xx': errorSchemaRef,
72-
},
73-
} as const satisfies FastifySchema;
74-
7554
export const getAccessible = {
7655
operationId: 'getAccessibleItems',
7756
tags: ['item'],

src/services/item/plugins/file/itemFile.controller.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { buildFile, seedFromJson } from '../../../../../test/mocks/seed';
2727
import { db } from '../../../../drizzle/db';
2828
import { isDirectChild } from '../../../../drizzle/operations';
2929
import { itemMembershipsTable, itemsRawTable } from '../../../../drizzle/schema';
30-
import { type ItemRaw } from '../../../../drizzle/types';
3130
import { assertIsDefined } from '../../../../utils/assertions';
3231
import { ITEMS_ROUTE_PREFIX } from '../../../../utils/config';
3332
import { MemberCannotAccess, MemberCannotWriteItem } from '../../../../utils/errors';
@@ -39,7 +38,7 @@ import {
3938
UploadFileUnexpectedError,
4039
} from '../../../file/utils/errors';
4140
import { ThumbnailSizeFormat } from '../../../thumbnail/constants';
42-
import { expectItem, expectManyItems } from '../../test/fixtures/items';
41+
import { expectItem } from '../../test/fixtures/items';
4342
import { DEFAULT_MAX_STORAGE } from './utils/constants';
4443
import { StorageExceeded } from './utils/errors';
4544

0 commit comments

Comments
 (0)