|
|
@@ -39,7 +39,8 @@ namespace ETModel
|
|
|
ComponentWithId component = dbCacheComponent.GetFromCache(this.CollectionName, id);
|
|
|
if (component == null)
|
|
|
{
|
|
|
- component = await dbComponent.GetCollection(this.CollectionName).FindAsync((s) => s.Id == id).Result.FirstOrDefaultAsync();
|
|
|
+ IAsyncCursor<ComponentWithId> cursor = await dbComponent.GetCollection(this.CollectionName).FindAsync((s) => s.Id == id);
|
|
|
+ component = await cursor.FirstOrDefaultAsync();
|
|
|
}
|
|
|
|
|
|
if (component == null)
|