jude/react-dashboard #3

Merged
jude merged 6 commits from jude/react-dashboard into current 2023-12-22 16:58:31 +00:00
14 changed files with 148 additions and 24 deletions
Showing only changes of commit a476f43f28 - Show all commits

View File

@ -235,6 +235,21 @@ pub async fn edit_reminder(
]);
}
}
} else {
sqlx::query!(
"
UPDATE reminders
SET interval_seconds = NULL, interval_days = NULL, interval_months = NULL
WHERE uid = ?
",
reminder.uid
)
.execute(transaction.executor())
.await
.map_err(|e| {
warn!("Error updating reminder interval: {:?}", e);
json!({ "reminder": Option::<Reminder>::None, "errors": vec!["Unknown error"] })
})?;
}
if reminder.channel > 0 {