diff options
Diffstat (limited to 'app/src/main/java/SubredditDatabase/SubredditDao.java')
-rw-r--r-- | app/src/main/java/SubredditDatabase/SubredditDao.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/SubredditDatabase/SubredditDao.java b/app/src/main/java/SubredditDatabase/SubredditDao.java index 9b2fcabb..e7b564f7 100644 --- a/app/src/main/java/SubredditDatabase/SubredditDao.java +++ b/app/src/main/java/SubredditDatabase/SubredditDao.java @@ -20,6 +20,6 @@ public interface SubredditDao { @Query("SELECT * from subreddits WHERE name = :namePrefixed") LiveData<SubredditData> getSubredditLiveDataByNamePrefixed(String namePrefixed); - @Query("SELECT * from subreddits WHERE name = :namePrefixed") + @Query("SELECT * from subreddits WHERE name = :namePrefixed LIMIT 1") SubredditData getSubredditData(String namePrefixed); } |