959 api rest startingafter and endingbefore not working properly with orderby (#12012)

Fixes https://github.com/twentyhq/core-team-issues/issues/959
This commit is contained in:
martmull
2025-05-14 10:41:56 +02:00
committed by GitHub
parent e835e0ad64
commit 4d2e431277
6 changed files with 145 additions and 63 deletions

View File

@ -17,7 +17,7 @@ import { isValidDate } from 'src/utils/date/isValidDate';
export function formatResult<T>(
data: any,
objectMetadataItemWithFieldMaps: ObjectMetadataItemWithFieldMaps,
objectMetadataItemWithFieldMaps: ObjectMetadataItemWithFieldMaps | undefined,
objectMetadataMaps: ObjectMetadataMaps,
): T {
if (!data) {