From e316313816fedf94e62d128c76c41f7fbb08990d Mon Sep 17 00:00:00 2001 From: Siddhi-Sikchi Date: Fri, 26 Jun 2026 13:08:00 +0530 Subject: [PATCH] Optional Icon field is added to Goal Model --- CommBank-Server/Models/Goal.cs | 2 ++ CommBank-Server/Services/GoalService.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CommBank-Server/Models/Goal.cs b/CommBank-Server/Models/Goal.cs index 77ff1ad5..20b9b5d4 100644 --- a/CommBank-Server/Models/Goal.cs +++ b/CommBank-Server/Models/Goal.cs @@ -27,4 +27,6 @@ public class Goal [BsonRepresentation(BsonType.ObjectId)] public string? UserId { get; set; } + + public string? Icon { get; set; } } \ No newline at end of file diff --git a/CommBank-Server/Services/GoalService.cs b/CommBank-Server/Services/GoalService.cs index b0c600a1..fb240efa 100644 --- a/CommBank-Server/Services/GoalService.cs +++ b/CommBank-Server/Services/GoalService.cs @@ -9,7 +9,7 @@ public class GoalsService : IGoalsService public GoalsService(IMongoDatabase mongoDatabase) { - _goalsCollection = mongoDatabase.GetCollection("Goals"); + _goalsCollection = mongoDatabase.GetCollection("goals"); } public async Task> GetAsync() =>