Skip to content

Commit

Permalink
Fix delete query
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisBarreiro committed Dec 20, 2024
1 parent d6c864d commit 1f7ccf9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package com.duckduckgo.malicioussiteprotection.impl.data.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
Expand All @@ -33,10 +32,10 @@ interface MaliciousSiteDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertHashPrefixes(items: List<HashPrefixEntity>)

@Delete(HashPrefixEntity::class)
@Query("DELETE FROM hash_prefixes")
suspend fun deleteHashPrefixes()

@Delete(FilterEntity::class)
@Query("DELETE FROM filters")
suspend fun deleteFilters()

@Insert(onConflict = OnConflictStrategy.REPLACE)
Expand Down

0 comments on commit 1f7ccf9

Please sign in to comment.