Commit b769effe authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Only commit non-commited rules

parent 855566ae
...@@ -57,7 +57,7 @@ interface DnsRuleDao { ...@@ -57,7 +57,7 @@ interface DnsRuleDao {
@Query("DELETE FROM DnsRule WHERE stagingType=2") @Query("DELETE FROM DnsRule WHERE stagingType=2")
fun deleteStagedRules() fun deleteStagedRules()
@Query("UPDATE OR IGNORE DnsRule SET stagingType=0") @Query("UPDATE OR IGNORE DnsRule SET stagingType=0 WHERE stagingType!=0")
fun commitStaging() fun commitStaging()
@Insert @Insert
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment