Skip to content

Commit

Permalink
Change location type from SALON to COMMERCIAL in various enums and t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
jamalsoueidan committed Jun 7, 2024
1 parent d0b924f commit 2fa626c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("CustomerLocationUpdateOrchestration", () => {
const location = await createLocation({
name: "Falafel",
fullAddress: "Sigridsvej 45, 1. th, 8220 Brabrand",
locationType: LocationTypes.SALON,
locationType: LocationTypes.COMMERCIAL,
customerId: 12,
distanceHourlyRate: 1,
fixedRatePerKm: 10,
Expand Down
2 changes: 1 addition & 1 deletion src/functions/location/location.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const LocationMongooseSchema = new mongoose.Schema<
enum: [
LocationTypes.DESTINATION,
LocationTypes.HOME,
LocationTypes.SALON,
LocationTypes.COMMERCIAL,
LocationTypes.VIRTUAL,
],
required: true,
Expand Down
2 changes: 1 addition & 1 deletion src/functions/location/location.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BooleanOrString, GidFormat, NumberOrString } from "~/library/zod";

export enum LocationTypes {
HOME = "home",
SALON = "salon",
COMMERCIAL = "commercial",
DESTINATION = "destination",
VIRTUAL = "virtual",
}
Expand Down
2 changes: 1 addition & 1 deletion src/functions/schedule/schemas/product.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const ProductSchema = new mongoose.Schema<ScheduleProduct>(
type: String,
enum: [
LocationTypes.HOME,
LocationTypes.SALON,
LocationTypes.COMMERCIAL,
LocationTypes.DESTINATION,
LocationTypes.VIRTUAL,
],
Expand Down

0 comments on commit 2fa626c

Please sign in to comment.