update comments
This commit is contained in:
parent
97c4af05f1
commit
13d4337fd7
|
@ -88,7 +88,7 @@ export const useGetUserProperties = async (
|
||||||
//*************************************************************************************//
|
//*************************************************************************************//
|
||||||
// Get User Managers
|
// Get User Managers
|
||||||
//*************************************************************************************//
|
//*************************************************************************************//
|
||||||
const getManagers = async (extendedManagers) => {
|
const getManagers = async (extendedManagers:string[] ) => {
|
||||||
let _managersObjIds: string[] = [];
|
let _managersObjIds: string[] = [];
|
||||||
// Get Managers
|
// Get Managers
|
||||||
for (const _manager of extendedManagers) {
|
for (const _manager of extendedManagers) {
|
||||||
|
@ -142,7 +142,7 @@ export const useGetUserProperties = async (
|
||||||
// Get Direct Reports
|
// Get Direct Reports
|
||||||
//*************************************************************************************//
|
//*************************************************************************************//
|
||||||
|
|
||||||
const getDirectReports = async (directReports) => {
|
const getDirectReports = async (directReports:string[] ) => {
|
||||||
let _userReportObjIds: string[] = [];
|
let _userReportObjIds: string[] = [];
|
||||||
for (const _userReport of directReports) {
|
for (const _userReport of directReports) {
|
||||||
const _profile: any = await sp.profiles
|
const _profile: any = await sp.profiles
|
||||||
|
@ -171,7 +171,7 @@ export const useGetUserProperties = async (
|
||||||
const _directReportsPresences: IUserPresence[] = await getUserPresence(
|
const _directReportsPresences: IUserPresence[] = await getUserPresence(
|
||||||
_userReportObjIds
|
_userReportObjIds
|
||||||
);
|
);
|
||||||
// Update Array of managers with presence
|
// Update Array of direct reports with presence
|
||||||
if (_directReportsPresences.length > 0) {
|
if (_directReportsPresences.length > 0) {
|
||||||
for (const _presence of _directReportsPresences) {
|
for (const _presence of _directReportsPresences) {
|
||||||
const i = _.findIndex(_reportsList, (v) => {
|
const i = _.findIndex(_reportsList, (v) => {
|
||||||
|
@ -199,10 +199,10 @@ export const useGetUserProperties = async (
|
||||||
.usingCaching()
|
.usingCaching()
|
||||||
.getPropertiesFor(loginName);
|
.getPropertiesFor(loginName);
|
||||||
console.log(_currentUserProfile);
|
console.log(_currentUserProfile);
|
||||||
|
// get Managers and Direct Reports
|
||||||
const _extendedManagers: string[] = _currentUserProfile.ExtendedManagers;
|
const _extendedManagers: string[] = _currentUserProfile.ExtendedManagers;
|
||||||
const _directReports: string[] = _currentUserProfile.DirectReports;
|
const _directReports: string[] = _currentUserProfile.DirectReports;
|
||||||
|
// Get userObjId
|
||||||
const _currentUserObjId: string = await getUserId( _currentUserProfile.UserProfileProperties);
|
const _currentUserObjId: string = await getUserId( _currentUserProfile.UserProfileProperties);
|
||||||
// Get Current user Picture and User Presence
|
// Get Current user Picture and User Presence
|
||||||
_currentUserProfile.PictureUrl = await getImageBase64(
|
_currentUserProfile.PictureUrl = await getImageBase64(
|
||||||
|
|
Loading…
Reference in New Issue