Skip to content

Commit

Permalink
Merge pull request #27 from Advanced-computer-lab-2024/backend/rashee…
Browse files Browse the repository at this point in the history
…datia/CategoryCRUD

Adjusted specialDiscounts from string to number
  • Loading branch information
RasheedAtia authored Oct 6, 2024
2 parents c678a44 + b9a7c35 commit 40fc76c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/database/models/activity.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const activitySchema = new Schema(
type: [{ type: Schema.Types.ObjectId, ref: 'tag' }],
},
specialDiscounts: {
type: String,
type: Number,
},
bookingOpen: {
type: Boolean,
Expand Down
2 changes: 1 addition & 1 deletion backend/src/types/Activity.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface ActivityType {
price: number;
category: string;
tags: TagType[];
specialDiscounts?: string;
specialDiscounts?: Number;
bookingOpen: boolean;
}

Expand Down

0 comments on commit 40fc76c

Please sign in to comment.