jude/react-dashboard #3
 Submodule reminder-dashboard updated: 8ba7a39ce5...d068782596
									
								
							@@ -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 {
 | 
					    if reminder.channel > 0 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user