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
@@ -45,7 +45,7 @@ public class CalendarService : BaseDatabaseService, ICalendarService
await Connection.ExecuteAsync(
"DELETE FROM CalendarItem WHERE CalendarId = ? AND AccountId = ?",
accountCalendar.Id, accountCalendar.AccountId);
await Connection.DeleteAsync<AccountCalendar>(accountCalendar);
await Connection.DeleteAsync<AccountCalendar>(accountCalendar.Id);
WeakReferenceMessenger.Default.Send(new CalendarListDeleted(accountCalendar));
}