Skip to content

Commit

Permalink
#223 - Macro GetAll (Can't use GetAll EntiyService for macros)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Jul 10, 2019
1 parent 9bc1962 commit 3be5ca9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Jumoo.uSync.Core/Serializers/MacroSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ internal override SyncAttempt<IMacro> DeserializeCore(XElement node)
var key = node.Element("Key").ValueOrDefault(Guid.Empty);
if (key != Guid.Empty)
{
var entities = _entityService.GetAll(key);
if (entities != null && entities.Any() && entities.FirstOrDefault() != null)
{
item = _macroService.GetById(entities.FirstOrDefault().Id);
}
var macros = _macroService.GetAll(key);
if (macros != null && macros.Any())
item = macros.FirstOrDefault();
}
}

Expand Down

0 comments on commit 3be5ca9

Please sign in to comment.