From 1f7ccf909673be21b4ef2d5427b8115f99f5e1cc Mon Sep 17 00:00:00 2001 From: Cris Barreiro Date: Fri, 20 Dec 2024 11:10:20 +0100 Subject: [PATCH] Fix delete query --- .../malicioussiteprotection/impl/data/db/MaliciousSiteDao.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/malicious-site-protection/malicious-site-protection-impl/src/main/kotlin/com/duckduckgo/malicioussiteprotection/impl/data/db/MaliciousSiteDao.kt b/malicious-site-protection/malicious-site-protection-impl/src/main/kotlin/com/duckduckgo/malicioussiteprotection/impl/data/db/MaliciousSiteDao.kt index df9a5690f589..fa213bde4293 100644 --- a/malicious-site-protection/malicious-site-protection-impl/src/main/kotlin/com/duckduckgo/malicioussiteprotection/impl/data/db/MaliciousSiteDao.kt +++ b/malicious-site-protection/malicious-site-protection-impl/src/main/kotlin/com/duckduckgo/malicioussiteprotection/impl/data/db/MaliciousSiteDao.kt @@ -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 @@ -33,10 +32,10 @@ interface MaliciousSiteDao { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insertHashPrefixes(items: List) - @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)