Fix bug where deleted events stay listed

This commit is contained in:
Lennart
2024-06-30 19:42:26 +02:00
parent a67d7557af
commit 8afcbccd6a
14 changed files with 1 additions and 285 deletions

View File

@@ -145,7 +145,7 @@ impl CalendarStore for SqliteCalendarStore {
async fn get_events(&self, principal: &str, cid: &str) -> Result<Vec<Event>, Error> {
sqlx::query_as!(
EventRow,
"SELECT uid, ics FROM events WHERE principal = ? AND cid = ?",
"SELECT uid, ics FROM events WHERE principal = ? AND cid = ? AND deleted_at IS NULL",
principal,
cid
)