Skip to content

Commit

Permalink
Fix instance auto id getOne
Browse files Browse the repository at this point in the history
  • Loading branch information
tspoke committed May 2, 2018
1 parent 64e5194 commit c5803e4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.playmoweb.store2store.store.Optional;
import com.playmoweb.store2store.store.StoreDao;
import com.playmoweb.store2store.utils.Filter;
import com.playmoweb.store2store.utils.FilterType;
import com.playmoweb.store2store.utils.SortType;
import com.playmoweb.store2store.utils.SortingMode;

Expand Down Expand Up @@ -105,7 +104,7 @@ public Flowable<Optional<T>> getOne(Filter filter, SortingMode sortingMode) {

@Override
public Flowable<Optional<T>> getOne(T item) {
return getOne(new Filter(item.getUniqueIdentifierName(), FilterType.EQUAL), null);
return getOne(new Filter(item.getUniqueIdentifierName(), item.getUniqueIdentifier()), null);
}

/**
Expand Down

0 comments on commit c5803e4

Please sign in to comment.