fix-threads-pagination (#3639)

This commit is contained in:
bosiraphael
2024-01-26 14:24:27 +01:00
committed by GitHub
parent c8f8327d04
commit ebfa1bea99

View File

@ -28,7 +28,7 @@ export class TimelineMessagingService {
page: number = 1,
pageSize: number = TIMELINE_THREADS_DEFAULT_PAGE_SIZE,
): Promise<TimelineThread[]> {
const offset = (page - 1) * TIMELINE_THREADS_DEFAULT_PAGE_SIZE;
const offset = (page - 1) * pageSize;
const dataSourceMetadata =
await this.dataSourceService.getLastDataSourceMetadataFromWorkspaceIdOrFail(