Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CommBank-Server/Models/Goal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ public class Goal

[BsonRepresentation(BsonType.ObjectId)]
public string? UserId { get; set; }
public string? Icon { get; set; }
}
2 changes: 1 addition & 1 deletion CommBank-Server/Secrets.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ConnectionStrings": {
"CommBank": "{CONNECTION_STRING}"
"CommBank": "mongodb+srv://rserver_user:server@cluster0.gbyguwy.mongodb.net/?appName=Cluster0"
}
}
2 changes: 1 addition & 1 deletion CommBank-Server/Services/AccountService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class AccountsService : IAccountsService

public AccountsService(IMongoDatabase mongoDatabase)
{
_accountsCollection = mongoDatabase.GetCollection<Account>("Accounts");
_accountsCollection = mongoDatabase.GetCollection<Account>("Account");
}

public async Task<List<Account>> GetAsync() =>
Expand Down
2 changes: 1 addition & 1 deletion CommBank-Server/Services/AuthService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class AuthService : IAuthService

public AuthService(IMongoDatabase mongoDatabase)
{
_usersCollection = mongoDatabase.GetCollection<User>("Users");
_usersCollection = mongoDatabase.GetCollection<User>("User");
}

public async Task<User?> Login(string email, string password)
Expand Down
2 changes: 1 addition & 1 deletion CommBank-Server/Services/GoalService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class GoalsService : IGoalsService

public GoalsService(IMongoDatabase mongoDatabase)
{
_goalsCollection = mongoDatabase.GetCollection<Goal>("Goals");
_goalsCollection = mongoDatabase.GetCollection<Goal>("Goal");
}

public async Task<List<Goal>> GetAsync() =>
Expand Down
2 changes: 1 addition & 1 deletion CommBank-Server/Services/TagsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class TagsService : ITagsService

public TagsService(IMongoDatabase mongoDatabase)
{
_tagsCollection = mongoDatabase.GetCollection<Models.Tag>("Tags");
_tagsCollection = mongoDatabase.GetCollection<Models.Tag>("Tag");
}

public async Task<List<Models.Tag>> GetAsync() =>
Expand Down
2 changes: 1 addition & 1 deletion CommBank-Server/Services/TransactionsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class TransactionsService : ITransactionsService

public TransactionsService(IMongoDatabase mongoDatabase)
{
_transactionsCollection = mongoDatabase.GetCollection<Transaction>("Transactions");
_transactionsCollection = mongoDatabase.GetCollection<Transaction>("Transaction");
}

public async Task<List<Transaction>> GetAsync() =>
Expand Down
2 changes: 1 addition & 1 deletion CommBank-Server/Services/UsersService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class UsersService : IUsersService

public UsersService(IMongoDatabase mongoDatabase)
{
_usersCollection = mongoDatabase.GetCollection<User>("Users");
_usersCollection = mongoDatabase.GetCollection<User>("User");
}

public async Task<List<User>> GetAsync() =>
Expand Down