Skip to content

Commit

Permalink
Respect constraints when deleting all user's data
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaemepereira committed Jan 3, 2024
1 parent f82e4f1 commit 0d19b9a
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,28 +321,16 @@ final class DefaultDataBrokerProtectionDatabaseProvider: GRDBSecureStorageDataba

func deleteProfileData() throws {
try db.write { db in
try OptOutHistoryEventDB
.deleteAll(db)
try OptOutDB
.deleteAll(db)
try ScanHistoryEventDB
.deleteAll(db)
try ScanDB
.deleteAll(db)
try ExtractedProfileDB
.deleteAll(db)
try ProfileQueryDB
.deleteAll(db)
try BrokerDB
.deleteAll(db)
try NameDB
.deleteAll(db)
try AddressDB
.deleteAll(db)
try PhoneDB
.deleteAll(db)
try ProfileDB
.deleteAll(db)
}
}

Expand Down

0 comments on commit 0d19b9a

Please sign in to comment.