diff --git a/src/modules/cards/application/useCases/queries/GetUrlStatusForMyLibraryUseCase.ts b/src/modules/cards/application/useCases/queries/GetUrlStatusForMyLibraryUseCase.ts index 571cf10a..b15663f5 100644 --- a/src/modules/cards/application/useCases/queries/GetUrlStatusForMyLibraryUseCase.ts +++ b/src/modules/cards/application/useCases/queries/GetUrlStatusForMyLibraryUseCase.ts @@ -101,7 +101,9 @@ export class GetUrlStatusForMyLibraryUseCase extends BaseUseCase< ); if (authorProfileResult.isErr()) { - return err(AppError.UnexpectedError.create(authorProfileResult.error)); + return err( + AppError.UnexpectedError.create(authorProfileResult.error), + ); } const authorProfile = authorProfileResult.value; @@ -154,9 +156,10 @@ export class GetUrlStatusForMyLibraryUseCase extends BaseUseCase< const fullCollection = collectionResult.value; // Fetch author profile - const authorProfileResult = await this.profileService.getProfile( - fullCollection.authorId.value, - ); + const authorProfileResult = + await this.profileService.getProfile( + fullCollection.authorId.value, + ); if (authorProfileResult.isErr()) { throw new Error( `Failed to fetch author profile: ${authorProfileResult.error.message}`, diff --git a/src/modules/cards/tests/infrastructure/DrizzleCardQueryRepository.getUrlCardBasic.integration.test.ts b/src/modules/cards/tests/infrastructure/DrizzleCardQueryRepository.getUrlCardBasic.integration.test.ts index 005adb80..04db9477 100644 --- a/src/modules/cards/tests/infrastructure/DrizzleCardQueryRepository.getUrlCardBasic.integration.test.ts +++ b/src/modules/cards/tests/infrastructure/DrizzleCardQueryRepository.getUrlCardBasic.integration.test.ts @@ -115,9 +115,13 @@ describe('DrizzleCardQueryRepository - getUrlCardBasic', () => { expect(result?.type).toBe(CardTypeEnum.URL); expect(result?.url).toBe(url.value); expect(result?.cardContent.title).toBe('Test Article'); - expect(result?.cardContent.description).toBe('A test article description'); + expect(result?.cardContent.description).toBe( + 'A test article description', + ); expect(result?.cardContent.author).toBe('John Doe'); - expect(result?.cardContent.thumbnailUrl).toBe('https://example.com/image.jpg'); + expect(result?.cardContent.thumbnailUrl).toBe( + 'https://example.com/image.jpg', + ); expect(result?.note).toBeUndefined(); }); @@ -152,7 +156,9 @@ describe('DrizzleCardQueryRepository - getUrlCardBasic', () => { it('should NOT include note card by a different author', async () => { // Create URL card by first author - const url = URL.create('https://example.com/article-different-author').unwrap(); + const url = URL.create( + 'https://example.com/article-different-author', + ).unwrap(); const urlCard = new CardBuilder() .withCuratorId(curatorId.value) .withUrlCard(url)