Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e59f45b authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

#1167 Cache Retrofit APIs

Fix updating to new apiVersions
parent 972a3861
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,6 +53,6 @@ public interface AccountDao {
    @Query("UPDATE Account SET MODIFIED = :modified WHERE id = :id")
    void updateModified(long id, long modified);

    @Query("UPDATE Account SET APIVERSION = :apiVersion WHERE id = :id AND APIVERSION != :apiVersion")
    @Query("UPDATE Account SET APIVERSION = :apiVersion WHERE id = :id AND (APIVERSION IS NULL OR APIVERSION <> :apiVersion)")
    int updateApiVersion(Long id, String apiVersion);
}