fixed the i am specific new api issue
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
# Host Module Functions
|
||||
# All authentication and host management endpoints
|
||||
|
||||
getHosts:
|
||||
handler: src/modules/host/handlers/host.handler
|
||||
memorySize: 384
|
||||
package:
|
||||
patterns:
|
||||
- 'src/modules/host/handlers/host.*'
|
||||
- 'src/modules/host/services/**'
|
||||
- ${file(./serverless/patterns/base.yml):pattern1}
|
||||
- ${file(./serverless/patterns/base.yml):pattern2}
|
||||
- ${file(./serverless/patterns/base.yml):pattern3}
|
||||
- ${file(./serverless/patterns/base.yml):pattern4}
|
||||
events:
|
||||
- httpApi:
|
||||
path: /host
|
||||
method: get
|
||||
# getHosts:
|
||||
# handler: src/modules/host/handlers/host.handler
|
||||
# memorySize: 384
|
||||
# package:
|
||||
# patterns:
|
||||
# - 'src/modules/host/handlers/host.*'
|
||||
# - 'src/modules/host/services/**'
|
||||
# - ${file(./serverless/patterns/base.yml):pattern1}
|
||||
# - ${file(./serverless/patterns/base.yml):pattern2}
|
||||
# - ${file(./serverless/patterns/base.yml):pattern3}
|
||||
# - ${file(./serverless/patterns/base.yml):pattern4}
|
||||
# events:
|
||||
# - httpApi:
|
||||
# path: /host
|
||||
# method: get
|
||||
|
||||
verifyOTP:
|
||||
handler: src/modules/host/handlers/Host_Admin/onboarding/verifyOTP.handler
|
||||
|
||||
@@ -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