sending the activity count in the submit personal info
This commit is contained in:
@@ -420,6 +420,14 @@ export class UserService {
|
||||
},
|
||||
});
|
||||
|
||||
const totalActivityCount = await this.prisma.activities.count({
|
||||
where: {
|
||||
isActive: true,
|
||||
activityInternalStatus: ACTIVITY_INTERNAL_STATUS.ACTIVITY_LISTED,
|
||||
amInternalStatus: ACTIVITY_AM_INTERNAL_STATUS.ACTIVITY_LISTED,
|
||||
}
|
||||
})
|
||||
|
||||
for (const interest of interests) {
|
||||
if (interest.interestImage) {
|
||||
const key = interest.interestImage.startsWith('http')
|
||||
@@ -432,7 +440,7 @@ export class UserService {
|
||||
}
|
||||
}
|
||||
|
||||
return interests;
|
||||
return { interests, totalActivityCount };
|
||||
}
|
||||
|
||||
async getUserByMobileNumber(mobileNumber: string): Promise<User | null> {
|
||||
|
||||
Reference in New Issue
Block a user