Fix issue with exporting

This commit is contained in:
jude
2024-10-21 18:50:06 +01:00
parent eb5c851d97
commit 33e85dc44d
5 changed files with 9 additions and 24 deletions

View File

@ -79,8 +79,11 @@ pub async fn export_reminders(
"
);
let result =
sqlx::query_as::<Database, ReminderCsv>(&sql).fetch_all(pool.inner()).await;
let mut query = sqlx::query_as::<Database, ReminderCsv>(&sql);
for channel in channels {
query = query.bind(channel);
}
let result = query.fetch_all(pool.inner()).await;
match result {
Ok(reminders) => {