From b9a7c35829269f7bedd5b98d26bd176b94f3dd35 Mon Sep 17 00:00:00 2001 From: RasheedAtia Date: Sun, 6 Oct 2024 14:40:16 +0300 Subject: [PATCH] Adjusted specialDiscounts from string to number --- backend/src/database/models/activity.model.ts | 2 +- backend/src/types/Activity.types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/database/models/activity.model.ts b/backend/src/database/models/activity.model.ts index 8f2a5a1..c4fce68 100644 --- a/backend/src/database/models/activity.model.ts +++ b/backend/src/database/models/activity.model.ts @@ -31,7 +31,7 @@ const activitySchema = new Schema( type: [{ type: Schema.Types.ObjectId, ref: 'tag' }], }, specialDiscounts: { - type: String, + type: Number, }, bookingOpen: { type: Boolean, diff --git a/backend/src/types/Activity.types.ts b/backend/src/types/Activity.types.ts index 35eaa89..fca53e9 100644 --- a/backend/src/types/Activity.types.ts +++ b/backend/src/types/Activity.types.ts @@ -8,6 +8,6 @@ export interface ActivityType { price: number; category: string; tags: TagType[]; - specialDiscounts?: string; + specialDiscounts?: Number; bookingOpen: boolean; }