A social knowledge tool for researchers built on ATProto
45
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix minor issues

+7 -3
+1
src/modules/cards/tests/application/GetUrlStatusForMyLibraryUseCase.test.ts
··· 552 552 getCollectionsContainingCardForUser: jest 553 553 .fn() 554 554 .mockRejectedValue(new Error('Collection query error')), 555 + getCollectionsWithUrl: jest.fn(), 555 556 }; 556 557 557 558 const errorUseCase = new GetUrlStatusForMyLibraryUseCase(
+5 -2
src/modules/cards/tests/utils/InMemoryCollectionQueryRepository.ts
··· 50 50 options.sortOrder, 51 51 ); 52 52 53 - const start Index = (options.page - 1) * options.limit; 53 + const startIndex = (options.page - 1) * options.limit; 54 54 const endIndex = startIndex + options.limit; 55 55 const paginatedCollections = sortedCollections.slice( 56 56 startIndex, ··· 191 191 const { page, limit } = options; 192 192 const startIndex = (page - 1) * limit; 193 193 const endIndex = startIndex + limit; 194 - const paginatedCollections = sortedCollections.slice(startIndex, endIndex); 194 + const paginatedCollections = sortedCollections.slice( 195 + startIndex, 196 + endIndex, 197 + ); 195 198 196 199 const items: CollectionForUrlDTO[] = paginatedCollections.map( 197 200 (collection) => {
+1 -1
src/shared/infrastructure/http/factories/RepositoryFactory.ts
··· 32 32 import { DrizzleFeedRepository } from '../../../../modules/feeds/infrastructure/repositories/DrizzleFeedRepository'; 33 33 import { InMemoryFeedRepository } from '../../../../modules/feeds/tests/infrastructure/InMemoryFeedRepository'; 34 34 import { IFeedRepository } from '../../../../modules/feeds/domain/IFeedRepository'; 35 - import { IAtUriResolutionService } from '../../../../modules/cards/domain/services/IAtUriResolut ionService'; 35 + import { IAtUriResolutionService } from '../../../../modules/cards/domain/services/IAtUriResolutionService'; 36 36 import { DrizzleAtUriResolutionService } from '../../../../modules/cards/infrastructure/services/DrizzleAtUriResolutionService'; 37 37 import { InMemoryAtUriResolutionService } from '../../../../modules/cards/tests/utils/InMemoryAtUriResolutionService'; 38 38