diff --git a/mobile/openapi/doc/CreateLibraryDto.md b/mobile/openapi/doc/CreateLibraryDto.md index 94e96493e..01a2a0f91 100644 Binary files a/mobile/openapi/doc/CreateLibraryDto.md and b/mobile/openapi/doc/CreateLibraryDto.md differ diff --git a/mobile/openapi/lib/model/create_library_dto.dart b/mobile/openapi/lib/model/create_library_dto.dart index 24cc04530..93fb89b70 100644 Binary files a/mobile/openapi/lib/model/create_library_dto.dart and b/mobile/openapi/lib/model/create_library_dto.dart differ diff --git a/mobile/openapi/test/create_library_dto_test.dart b/mobile/openapi/test/create_library_dto_test.dart index 88911249e..1dd77af25 100644 Binary files a/mobile/openapi/test/create_library_dto_test.dart and b/mobile/openapi/test/create_library_dto_test.dart differ diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index 38df22f00..a61a60eb8 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -8000,9 +8000,6 @@ "isVisible": { "type": "boolean" }, - "isWatched": { - "type": "boolean" - }, "name": { "type": "string" }, diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index 999fa23fa..4d2cfa041 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -461,7 +461,6 @@ export type CreateLibraryDto = { exclusionPatterns?: string[]; importPaths?: string[]; isVisible?: boolean; - isWatched?: boolean; name?: string; ownerId: string; "type": LibraryType; diff --git a/server/src/dtos/library.dto.ts b/server/src/dtos/library.dto.ts index 951012a85..b693d35ad 100644 --- a/server/src/dtos/library.dto.ts +++ b/server/src/dtos/library.dto.ts @@ -32,9 +32,6 @@ export class CreateLibraryDto { @ArrayUnique() @ArrayMaxSize(128) exclusionPatterns?: string[]; - - @ValidateBoolean({ optional: true }) - isWatched?: boolean; } export class UpdateLibraryDto { diff --git a/server/src/services/library.service.spec.ts b/server/src/services/library.service.spec.ts index df59d0c15..95e3655cb 100644 --- a/server/src/services/library.service.spec.ts +++ b/server/src/services/library.service.spec.ts @@ -1058,14 +1058,6 @@ describe(LibraryService.name, () => { expect(libraryMock.create).not.toHaveBeenCalled(); }); - - it('should not create watched', async () => { - await expect( - sut.create({ ownerId: authStub.admin.user.id, type: LibraryType.UPLOAD, isWatched: true }), - ).rejects.toBeInstanceOf(BadRequestException); - - expect(storageMock.watch).not.toHaveBeenCalled(); - }); }); }); diff --git a/server/src/services/library.service.ts b/server/src/services/library.service.ts index d0e41da17..63066866f 100644 --- a/server/src/services/library.service.ts +++ b/server/src/services/library.service.ts @@ -266,9 +266,6 @@ export class LibraryService extends EventEmitter { if (dto.exclusionPatterns && dto.exclusionPatterns.length > 0) { throw new BadRequestException('Upload libraries cannot have exclusion patterns'); } - if (dto.isWatched) { - throw new BadRequestException('Upload libraries cannot be watched'); - } break; } } diff --git a/web/src/routes/admin/library-management/+page.svelte b/web/src/routes/admin/library-management/+page.svelte index 1efc7f778..723a6994b 100644 --- a/web/src/routes/admin/library-management/+page.svelte +++ b/web/src/routes/admin/library-management/+page.svelte @@ -118,7 +118,9 @@ const handleCreate = async (ownerId: string) => { try { - const createdLibrary = await createLibrary({ createLibraryDto: { ownerId, type: LibraryType.External } }); + const createdLibrary = await createLibrary({ + createLibraryDto: { ownerId, type: LibraryType.External }, + }); notificationController.show({ message: `Created library: ${createdLibrary.name}`,