feat(SW-874): Rename function
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import { RoomConfiguration } from "@/server/routers/hotels/output"
|
||||
|
||||
export function getLowestPricedRooms(roomConfigurations: RoomConfiguration[]) {
|
||||
/**
|
||||
* Get the lowest priced room for each room type that appears more than once.
|
||||
*/
|
||||
|
||||
export function getLowestPricedDuplicateRooms(
|
||||
roomConfigurations: RoomConfiguration[]
|
||||
) {
|
||||
const roomTypeCount = roomConfigurations.reduce(
|
||||
(acc, room) => {
|
||||
acc[room.roomType] = (acc[room.roomType] || 0) + 1
|
||||
|
||||
Reference in New Issue
Block a user