diff --git a/backend/src/Migrations/Migrations/MongoDb/ConvertDocumentIds.cs b/backend/src/Migrations/Migrations/MongoDb/ConvertDocumentIds.cs index 62e6bfcdf..66d5fdabe 100644 --- a/backend/src/Migrations/Migrations/MongoDb/ConvertDocumentIds.cs +++ b/backend/src/Migrations/Migrations/MongoDb/ConvertDocumentIds.cs @@ -82,6 +82,8 @@ namespace Migrations.Migrations.MongoDb var collectionOld = database.GetCollection(collectionNameOld); var collectionNew = database.GetCollection(collectionNameNew); + await collectionNew.DeleteManyAsync(new BsonDocument()); + var batchBlock = new BatchBlock(SizeOfBatch, new GroupingDataflowBlockOptions { BoundedCapacity = SizeOfQueue * SizeOfBatch diff --git a/frontend/app-config/webpack.config.js b/frontend/app-config/webpack.config.js index 9f8c9d4c1..d8aa0a3b2 100644 --- a/frontend/app-config/webpack.config.js +++ b/frontend/app-config/webpack.config.js @@ -304,7 +304,7 @@ module.exports = function (env) { new plugins.HtmlWebpackPlugin({ filename: 'theme.html', hash: true, - chunks: [], + chunks: ['app'], chunksSortMode: 'none', template: 'app/_theme.html' })