Browse Source

Another migration fix.

pull/590/head
Sebastian 5 years ago
parent
commit
d90310c655
  1. 2
      backend/src/Migrations/Migrations/MongoDb/ConvertDocumentIds.cs
  2. 2
      frontend/app-config/webpack.config.js

2
backend/src/Migrations/Migrations/MongoDb/ConvertDocumentIds.cs

@ -82,6 +82,8 @@ namespace Migrations.Migrations.MongoDb
var collectionOld = database.GetCollection<BsonDocument>(collectionNameOld); var collectionOld = database.GetCollection<BsonDocument>(collectionNameOld);
var collectionNew = database.GetCollection<BsonDocument>(collectionNameNew); var collectionNew = database.GetCollection<BsonDocument>(collectionNameNew);
await collectionNew.DeleteManyAsync(new BsonDocument());
var batchBlock = new BatchBlock<BsonDocument>(SizeOfBatch, new GroupingDataflowBlockOptions var batchBlock = new BatchBlock<BsonDocument>(SizeOfBatch, new GroupingDataflowBlockOptions
{ {
BoundedCapacity = SizeOfQueue * SizeOfBatch BoundedCapacity = SizeOfQueue * SizeOfBatch

2
frontend/app-config/webpack.config.js

@ -304,7 +304,7 @@ module.exports = function (env) {
new plugins.HtmlWebpackPlugin({ new plugins.HtmlWebpackPlugin({
filename: 'theme.html', filename: 'theme.html',
hash: true, hash: true,
chunks: [], chunks: ['app'],
chunksSortMode: 'none', chunksSortMode: 'none',
template: 'app/_theme.html' template: 'app/_theme.html'
}) })

Loading…
Cancel
Save