fixed the i am specific new api issue

This commit is contained in:
2026-03-09 15:18:59 +05:30
parent 0b503cf8bb
commit 8f428fc1cb
3 changed files with 19 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ export const handler = safeHandler(async (
const cityName = event.queryStringParameters?.cityName ?? '';
const userLat = event.queryStringParameters?.userLat ?? '';
const userLong = event.queryStringParameters?.userLong ?? '';
let activityTypeXids: number[] | undefined;
if (event.queryStringParameters?.activityTypeXids) {
try {

View File

@@ -1711,6 +1711,7 @@ export class UserService {
hasMore: skip + limit < newArrivalsCount,
activities: await Promise.all(
newArrivalsRaw.map(async (a) => ({
activityId: a.id,
activityTitle: a.activityTitle,
connectionInterestedCount:
connectionInterestMap.get(a.id) ?? 0,
@@ -1734,6 +1735,7 @@ export class UserService {
hasMore: skip + limit < otherStatesCount,
activities: await Promise.all(
otherStatesRaw.map(async (a) => ({
activityId: a.id,
activityTitle: a.activityTitle,
connectionInterestedCount:
connectionInterestMap.get(a.id) ?? 0,
@@ -1757,6 +1759,7 @@ export class UserService {
hasMore: skip + limit < overseasCount,
activities: await Promise.all(
overseasRaw.map(async (a) => ({
activityId: a.id,
activityTitle: a.activityTitle,
connectionInterestedCount:
connectionInterestMap.get(a.id) ?? 0,