mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-15 13:07:27 +01:00
Fix LazyLoad for ProviderRepository
This commit is contained in:
parent
f64f8e915f
commit
210fc3d85b
2 changed files with 3 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ public static IEnumerable<T> QueryJoined<T, T2, T3, T4, T5>(this IDatabase db, S
|
|||
return db.Query(sql.RawSql, mapper, sql.Parameters);
|
||||
}
|
||||
|
||||
private static void ApplyLazyLoad<TModel>(IDatabase db, TModel model)
|
||||
public static void ApplyLazyLoad<TModel>(this IDatabase db, TModel model)
|
||||
{
|
||||
if (TableMapping.Mapper.LazyLoadList.TryGetValue(typeof(TModel), out var lazyProperties))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,6 +64,8 @@ protected override List<TProviderDefinition> Query(SqlBuilder builder)
|
|||
item.Settings = (IProviderConfig)JsonSerializer.Deserialize(body, impType, _serializerSettings);
|
||||
}
|
||||
|
||||
_database.ApplyLazyLoad(item);
|
||||
|
||||
results.Add(item);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue