chore(server): remove unused property (#9521)
This commit is contained in:
@@ -259,7 +259,6 @@ export class AssetServiceV1 {
|
||||
type: LibraryType.UPLOAD,
|
||||
importPaths: [],
|
||||
exclusionPatterns: [],
|
||||
isVisible: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -830,7 +830,6 @@ describe(LibraryService.name, () => {
|
||||
type: LibraryType.EXTERNAL,
|
||||
importPaths: [],
|
||||
exclusionPatterns: [],
|
||||
isVisible: true,
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -860,37 +859,6 @@ describe(LibraryService.name, () => {
|
||||
type: LibraryType.EXTERNAL,
|
||||
importPaths: [],
|
||||
exclusionPatterns: [],
|
||||
isVisible: true,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should create invisible', async () => {
|
||||
libraryMock.create.mockResolvedValue(libraryStub.externalLibrary1);
|
||||
await expect(
|
||||
sut.create({ ownerId: authStub.admin.user.id, type: LibraryType.EXTERNAL, isVisible: false }),
|
||||
).resolves.toEqual(
|
||||
expect.objectContaining({
|
||||
id: libraryStub.externalLibrary1.id,
|
||||
type: LibraryType.EXTERNAL,
|
||||
name: libraryStub.externalLibrary1.name,
|
||||
ownerId: libraryStub.externalLibrary1.ownerId,
|
||||
assetCount: 0,
|
||||
importPaths: [],
|
||||
exclusionPatterns: [],
|
||||
createdAt: libraryStub.externalLibrary1.createdAt,
|
||||
updatedAt: libraryStub.externalLibrary1.updatedAt,
|
||||
refreshedAt: null,
|
||||
}),
|
||||
);
|
||||
|
||||
expect(libraryMock.create).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
name: expect.any(String),
|
||||
type: LibraryType.EXTERNAL,
|
||||
importPaths: [],
|
||||
exclusionPatterns: [],
|
||||
isVisible: false,
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -924,7 +892,6 @@ describe(LibraryService.name, () => {
|
||||
type: LibraryType.EXTERNAL,
|
||||
importPaths: ['/data/images', '/data/videos'],
|
||||
exclusionPatterns: [],
|
||||
isVisible: true,
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -972,7 +939,6 @@ describe(LibraryService.name, () => {
|
||||
type: LibraryType.EXTERNAL,
|
||||
importPaths: [],
|
||||
exclusionPatterns: ['*.tmp', '*.bak'],
|
||||
isVisible: true,
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -1002,7 +968,6 @@ describe(LibraryService.name, () => {
|
||||
type: LibraryType.UPLOAD,
|
||||
importPaths: [],
|
||||
exclusionPatterns: [],
|
||||
isVisible: true,
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -1032,7 +997,6 @@ describe(LibraryService.name, () => {
|
||||
type: LibraryType.UPLOAD,
|
||||
importPaths: [],
|
||||
exclusionPatterns: [],
|
||||
isVisible: true,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -271,7 +271,6 @@ export class LibraryService {
|
||||
type: dto.type,
|
||||
importPaths: dto.importPaths ?? [],
|
||||
exclusionPatterns: dto.exclusionPatterns ?? [],
|
||||
isVisible: dto.isVisible ?? true,
|
||||
});
|
||||
|
||||
this.logger.log(`Creating ${dto.type} library for ${dto.ownerId}}`);
|
||||
|
||||
Reference in New Issue
Block a user