From c211d3903caec1afc290f9124ff67ff9ce747589 Mon Sep 17 00:00:00 2001 From: Amir Pournasserian Date: Fri, 29 Nov 2024 19:09:15 -0500 Subject: [PATCH] Switch database to MongoDB and comment out Data setting Commented out the line setting the `Data` property in `ContentMessageHandler.cs` for potential debugging or testing purposes. Updated `appsettings.json` to switch the database configuration from LiteDb to MongoDB, including changing the `Database` setting and updating the `DefaultConnection` string to a MongoDB connection string. --- .../MessageHandlers/ContentMessageHandler.cs | 2 +- src/FluentCMS/appsettings.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Backend/FluentCMS.Services/MessageHandlers/ContentMessageHandler.cs b/src/Backend/FluentCMS.Services/MessageHandlers/ContentMessageHandler.cs index 35cd462da..db3a61da6 100644 --- a/src/Backend/FluentCMS.Services/MessageHandlers/ContentMessageHandler.cs +++ b/src/Backend/FluentCMS.Services/MessageHandlers/ContentMessageHandler.cs @@ -39,7 +39,7 @@ public async Task Handle(Message notification, CancellationToken c { SiteId = site.Id, TypeId = contentTypeTemplate.Id, - Data = processedData + //Data = processedData }; await contentService.Create(content, cancellationToken); } diff --git a/src/FluentCMS/appsettings.json b/src/FluentCMS/appsettings.json index cbc929209..bb110a8d7 100644 --- a/src/FluentCMS/appsettings.json +++ b/src/FluentCMS/appsettings.json @@ -1,7 +1,7 @@ { - "Database": "LiteDb", + "Database": "MongoDB", "ConnectionStrings": { - "DefaultConnection": "Filename=./fluentcms.db" + "DefaultConnection": "mongodb://localhost:27017/FluentCMS" }, "ClientSettings": { "Url": "http://localhost:5000",