Fixing an issue where DeleteAsync calls expect PK.

This commit is contained in:
Burak Kaan Köse
2025-12-25 17:21:23 +01:00
parent 8a68fafedf
commit f6e94e89c9
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ public class MailService : BaseDatabaseService, IMailService
_logger.Debug("Deleting mail {Id} from folder {FolderName}", mailCopy.Id, mailCopy.AssignedFolder.FolderName);
await Connection.DeleteAsync<MailCopy>(mailCopy).ConfigureAwait(false);
await Connection.DeleteAsync<MailCopy>(mailCopy.UniqueId).ConfigureAwait(false);
// If there are no more copies exists of the same mail, delete the MIME file as well.
var isMailExists = await IsMailExistsAsync(mailCopy.Id).ConfigureAwait(false);