diff --git a/src/Backend/Inspections.API/Features/ReportsConfiguration/Commands/DeleteReportConfigurationCommand.cs b/src/Backend/Inspections.API/Features/ReportsConfiguration/Commands/DeleteReportConfigurationCommand.cs index 4ea39674..3f138bf7 100644 --- a/src/Backend/Inspections.API/Features/ReportsConfiguration/Commands/DeleteReportConfigurationCommand.cs +++ b/src/Backend/Inspections.API/Features/ReportsConfiguration/Commands/DeleteReportConfigurationCommand.cs @@ -8,7 +8,11 @@ namespace Inspections.API.Features.ReportsConfiguration.Commands { public class DeleteReportConfigurationCommand : IRequest { - public int Id { get; private set; } + public int Id { get; set; } + private DeleteReportConfigurationCommand() + { + + } public DeleteReportConfigurationCommand(int id) { Id = id; diff --git a/src/Backend/Inspections.Infrastructure/Data/InspectionsContext.schema.dgml b/src/Backend/Inspections.Infrastructure/Data/InspectionsContext.schema.dgml index 3f210a13..1f6ba999 100644 --- a/src/Backend/Inspections.Infrastructure/Data/InspectionsContext.schema.dgml +++ b/src/Backend/Inspections.Infrastructure/Data/InspectionsContext.schema.dgml @@ -1,91 +1,91 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -208,6 +208,7 @@ + diff --git a/src/Backend/Inspections.Infrastructure/Data/InspectionsSeed.cs b/src/Backend/Inspections.Infrastructure/Data/InspectionsSeed.cs index 1f56113b..ee22f510 100644 --- a/src/Backend/Inspections.Infrastructure/Data/InspectionsSeed.cs +++ b/src/Backend/Inspections.Infrastructure/Data/InspectionsSeed.cs @@ -21,6 +21,10 @@ public static async Task SeedAsync(InspectionsContext context, ILoggerFactory lo if (!context.Database.IsInMemory()) context.Database.Migrate(); + // TODO OJOOOOO: remove when ready for production + context.Database.EnsureDeleted(); + context.Database.Migrate(); + var log = logger.CreateLogger(); int retries = retriesNumber.Value; try diff --git a/src/Backend/Inspections.Infrastructure/Queries/ReportConfigsQueries.cs b/src/Backend/Inspections.Infrastructure/Queries/ReportConfigsQueries.cs index 38096882..779f151d 100644 --- a/src/Backend/Inspections.Infrastructure/Queries/ReportConfigsQueries.cs +++ b/src/Backend/Inspections.Infrastructure/Queries/ReportConfigsQueries.cs @@ -28,8 +28,8 @@ SELECT [Id] , [Title] , [FormName] , [RemarksLabelText] - , DefinedCheckLists.CheckLists as DefinedCheckLists - , DefinedSignatures.Signatures as DefinedSignatures + , ISNULL(DefinedCheckLists.CheckLists,0) as DefinedCheckLists + , ISNULL(DefinedSignatures.Signatures,0) as DefinedSignatures , 0 as UsedByReports , LastEdit , LastEditUser diff --git a/src/ClientApp/nuxt.config.js b/src/ClientApp/nuxt.config.js index 7bec21c2..c97c922a 100644 --- a/src/ClientApp/nuxt.config.js +++ b/src/ClientApp/nuxt.config.js @@ -48,9 +48,9 @@ export default { '@nuxtjs/auth' // Doc: https://github.com/nuxt-community/dotenv-module ], - router: { - middleware: ['auth'] - }, + // router: { + // middleware: ['auth'] + // }, auth: { redirect: { login: '/Login',