From 618fff4222cbacf6e6098aa75fbd89697387e898 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 29 Nov 2021 15:39:40 +0100 Subject: [PATCH] Fix backup restore. --- backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs | 2 +- frontend/app-config/webpack.config.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs b/backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs index aa26957b5..6d2fe3625 100644 --- a/backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs +++ b/backend/src/Squidex.Infrastructure/Commands/Rebuilder.cs @@ -167,7 +167,7 @@ namespace Squidex.Infrastructure.Commands var errorRate = (double)handlerErrors / handledIds.Count; - if (errorRate >= errorThreshold) + if (errorRate > 0 && errorRate >= errorThreshold) { throw new InvalidOperationException($"Error rate of {errorRate} is above threshold {errorThreshold}."); } diff --git a/frontend/app-config/webpack.config.js b/frontend/app-config/webpack.config.js index 049aaba0a..1277b4284 100644 --- a/frontend/app-config/webpack.config.js +++ b/frontend/app-config/webpack.config.js @@ -134,7 +134,6 @@ module.exports = function calculateConfig(env) { loader: 'file-loader', options: { name: '[name].[hash].[ext]', - // Store the assets in custom path because of fonts need relative urls. outputPath: 'assets',