Feature/21 pilots view (#23)

* adding pilot details view

* adding pilot details view

* pilot view

* pilot view
This commit was merged in pull request #23.
This commit is contained in:
2024-10-03 20:43:11 -05:00
committed by GitHub
parent 071e211525
commit 11e00b5b14
15 changed files with 570 additions and 320 deletions

View File

@@ -74,7 +74,7 @@ export class AppController {
}
@Get('userProfile')
async getUserProfile(@Headers() headers: any) {
async getUserProfile(@Headers() headers: any): Promise<any> {
try {
const graphToken: string = await this.msGraphService.getMsGraphAuth(
headers.authorization.replace('Bearer ', ''),
@@ -94,12 +94,12 @@ export class AppController {
async searchUsers(
@Headers() headers: any,
@Query('search') search: any
): Promise<Person[]> {
): Promise<any> {
try {
const accessToken: string = headers.authorization.replace('Bearer ', '');
const personSearchResults: Person[] =
const personSearchResults: any[] =
await this.appService.getPersonSearchResults(accessToken, search);
console.log(personSearchResults);
return personSearchResults;
} catch (error) {
return error;