Feature/21 pilots view #23

Merged
noahspannbauer merged 4 commits from feature/21-pilots-view into main 2024-10-03 21:43:11 -04:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit e67e8f35b5 - Show all commits

View File

@@ -11,9 +11,9 @@ export class PilotInfoService {
constructor(private readonly tableService: TableService) {}
async find(rowKey: string): Promise<PilotInfoEntity> {
return await this.pilotInfoRepository.find(this.partitionKey, rowKey);
}
// async find(rowKey: string): Promise<PilotInfoEntity> {
// return await this.pilotInfoRepository.find(this.partitionKey, rowKey);
// }
async findAll(): Promise<PilotInfoEntity[]> {
try {

View File

@@ -11,7 +11,7 @@ import { PilotInfoDto } from './info/pilot-info.dto';
import { TableInsertEntityHeaders } from '@azure/data-tables';
import { CustomError } from '../customError/CustomError';
import { PilotInfoEntity } from './info/pilot-info.entity';
import { AuthInterceptor } from 'src/interceptors/auth.interceptor';
import { PilotInterceptor } from 'src/pilot/interceptors/pilot.interceptor';
import { Public } from '@noahspan/noahspan-modules';
@Controller('pilots')
@@ -20,7 +20,7 @@ export class PilotController {
@Get()
@Public()
@UseInterceptors(AuthInterceptor)
@UseInterceptors(PilotInterceptor)
async findAll(): Promise<PilotInfoEntity[]> {
try {
const pilots: PilotInfoEntity[] = await this.pilotInfoService.findAll();