From a0f4b6236147defcf5df232c4db267540a14a5d7 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Tue, 16 Sep 2025 16:14:26 +0200 Subject: [PATCH] Allow for empty orderBy --- backend/api/src/get-profiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/src/get-profiles.ts b/backend/api/src/get-profiles.ts index a09b8871..c4ff4fbb 100644 --- a/backend/api/src/get-profiles.ts +++ b/backend/api/src/get-profiles.ts @@ -43,7 +43,7 @@ export const loadProfiles = async (props: profileQueryType) => { is_smoker, geodbCityIds, compatibleWithUserId, - orderBy: orderByParam, + orderBy: orderByParam = 'created_time', skipId, } = props