We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c99637 commit 2c2caf4Copy full SHA for 2c2caf4
2 files changed
06-rest-api/03-graphql/02-crud/00-boilerplate/src/pods/hotel/hotel.mappers.ts
@@ -4,7 +4,6 @@ import * as viewModel from './hotel.vm';
4
export const mapHotelFromApiToVm = (
5
hotel: apiModel.Hotel
6
): viewModel.Hotel => ({
7
- ...hotel,
8
id: hotel.id,
9
name: hotel.name,
10
description: hotel.shortDescription,
@@ -14,12 +13,11 @@ export const mapHotelFromApiToVm = (
14
13
});
15
16
export const mapHotelFromVmToApi = (hotel: viewModel.Hotel): apiModel.Hotel =>
17
- (({
18
+ ({
19
20
21
shortDescription: hotel.description,
22
hotelRating: hotel.rating,
23
address1: hotel.address,
24
city: hotel.city,
25
- } as unknown) as apiModel.Hotel);
+ } as unknown as apiModel.Hotel);
0 commit comments