fixed the i am specific new api issue
This commit is contained in:
@@ -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 {
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user