remove deleteContactProfile_

This commit is contained in:
spaced4ndy
2023-09-18 13:05:39 +04:00
parent 795f82837b
commit da51f337dc
-6
View File
@@ -254,12 +254,6 @@ getDeletedContacts db user@User {userId} = do
getDeletedContact :: DB.Connection -> User -> Int64 -> ExceptT StoreError IO Contact
getDeletedContact db user contactId = getContact_ db user contactId True
-- deleteContactProfile_ :: DB.Connection -> UserId -> Contact -> IO ()
-- deleteContactProfile_ db userId Contact {contactId} = do
-- -- TODO not quite clear why there is more than one profile in this case
-- profileIds <- map fromOnly <$> DB.query db "SELECT contact_profile_id FROM contacts WHERE user_id = ? AND contact_id = ?" (userId, contactId)
-- mapM_ (deleteUnusedProfile_ db userId) profileIds
deleteContactProfile_ :: DB.Connection -> UserId -> ContactId -> IO ()
deleteContactProfile_ db userId contactId =
DB.execute