Loading backend/src/place/dto/create-place-date.dto.ts +6 −3 Original line number Diff line number Diff line Loading @@ -26,11 +26,14 @@ export class CreatePlaceDateTradDto { @ApiProperty({ type: 'string', format: 'binary' }) image; @ApiProperty() latitude: number; @ApiProperty({ type: 'decimal' }) latitude; @ApiProperty({ type: 'decimal' }) longitude; @ApiProperty() longitude: number; address: string; // 24-hour format @ApiProperty({ maximum: 24, minimum: 0 }) Loading backend/src/place/dto/get-place.dto.ts +3 −0 Original line number Diff line number Diff line Loading @@ -27,4 +27,7 @@ export class GetPlaceDto { endDate: Date; @ApiProperty() categories: any[]; @ApiProperty() address: string; } backend/src/place/place.service.ts +3 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ export class PlaceService { openAt: createPlaceDto.openAt, imageName: createPlaceDto.image.filename, categories: categories, address: createPlaceDto.address, }; if (!town) { Loading Loading @@ -105,6 +106,7 @@ export class PlaceService { endDate: place.availableDates[0]?.endDate || null, categories: place.categories, description: place.placeTraduction[0].description, address: place.address, }; }); return places; Loading Loading @@ -140,6 +142,7 @@ export class PlaceService { endDate: place.availableDates[0]?.endDate, categories: place.categories, description: place.placeTraduction[0].description, address: place.address, }; return res; } Loading Loading
backend/src/place/dto/create-place-date.dto.ts +6 −3 Original line number Diff line number Diff line Loading @@ -26,11 +26,14 @@ export class CreatePlaceDateTradDto { @ApiProperty({ type: 'string', format: 'binary' }) image; @ApiProperty() latitude: number; @ApiProperty({ type: 'decimal' }) latitude; @ApiProperty({ type: 'decimal' }) longitude; @ApiProperty() longitude: number; address: string; // 24-hour format @ApiProperty({ maximum: 24, minimum: 0 }) Loading
backend/src/place/dto/get-place.dto.ts +3 −0 Original line number Diff line number Diff line Loading @@ -27,4 +27,7 @@ export class GetPlaceDto { endDate: Date; @ApiProperty() categories: any[]; @ApiProperty() address: string; }
backend/src/place/place.service.ts +3 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ export class PlaceService { openAt: createPlaceDto.openAt, imageName: createPlaceDto.image.filename, categories: categories, address: createPlaceDto.address, }; if (!town) { Loading Loading @@ -105,6 +106,7 @@ export class PlaceService { endDate: place.availableDates[0]?.endDate || null, categories: place.categories, description: place.placeTraduction[0].description, address: place.address, }; }); return places; Loading Loading @@ -140,6 +142,7 @@ export class PlaceService { endDate: place.availableDates[0]?.endDate, categories: place.categories, description: place.placeTraduction[0].description, address: place.address, }; return res; } Loading