Feature/21 pilots view #23
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user