Implement updateHostProfile endpoint and related service logic; remove navigation modes seeding; add logging for user activities
This commit is contained in:
@@ -45,6 +45,8 @@ export const handler = safeHandler(async (
|
||||
throw new ApiError(400, 'Invalid schoolCompanyXids');
|
||||
}
|
||||
|
||||
console.log('schoolCompanyXids', schoolCompanyXids);
|
||||
|
||||
const result = await userService.getAllActivitiesFromConnectionsUserInterests(
|
||||
userId,
|
||||
schoolCompanyXids,
|
||||
|
||||
@@ -2661,6 +2661,8 @@ export class UserService {
|
||||
},
|
||||
});
|
||||
|
||||
console.log('networkUsers', networkUsers);
|
||||
|
||||
if (!networkUsers.length) {
|
||||
return {
|
||||
interests: [],
|
||||
@@ -2695,6 +2697,8 @@ export class UserService {
|
||||
|
||||
const distinctInterests = networkUserInterests.map(i => i.interestXid);
|
||||
|
||||
console.log('distinctInterests', distinctInterests);
|
||||
|
||||
if (!distinctInterests.length) {
|
||||
return {
|
||||
interests: [],
|
||||
|
||||
Reference in New Issue
Block a user