|
|
@ -36,7 +36,7 @@ namespace Squidex.Domain.Apps.Entities.MongoDb.Assets |
|
|
var entity = SimpleMapper.Map(value, new MongoAssetEntity()); |
|
|
var entity = SimpleMapper.Map(value, new MongoAssetEntity()); |
|
|
|
|
|
|
|
|
entity.Version = newVersion; |
|
|
entity.Version = newVersion; |
|
|
entity.IdxAppId = value.AppId.Id; |
|
|
entity.AppIdId = value.AppId.Id; |
|
|
|
|
|
|
|
|
await Collection.ReplaceOneAsync(x => x.Id == key && x.Version == oldVersion, entity, Upsert); |
|
|
await Collection.ReplaceOneAsync(x => x.Id == key && x.Version == oldVersion, entity, Upsert); |
|
|
} |
|
|
} |
|
|
|