Start Umbau zu postgres
This commit is contained in:
@@ -12,18 +12,18 @@ export class UnknownListingsController {
|
||||
}
|
||||
|
||||
|
||||
@Get(':id')
|
||||
async findById(@Param('id') id:string): Promise<any> {
|
||||
const result = await this.listingsService.getBusinessListingById(id);
|
||||
if (result.id){
|
||||
return result
|
||||
} else {
|
||||
return await this.listingsService.getCommercialPropertyListingById(id);
|
||||
}
|
||||
}
|
||||
@Get('repo/:repo')
|
||||
async getAllByRepo(@Param('repo') repo:string): Promise<any> {
|
||||
return await this.listingsService.getIdsForRepo(repo);
|
||||
}
|
||||
// @Get(':id')
|
||||
// async findById(@Param('id') id:string): Promise<any> {
|
||||
// const result = await this.listingsService.getBusinessListingById(id);
|
||||
// if (result.id){
|
||||
// return result
|
||||
// } else {
|
||||
// return await this.listingsService.getCommercialPropertyListingById(id);
|
||||
// }
|
||||
// }
|
||||
// @Get('repo/:repo')
|
||||
// async getAllByRepo(@Param('repo') repo:string): Promise<any> {
|
||||
// return await this.listingsService.getIdsForRepo(repo);
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user