pub fn new_record_update(
    old_record: &Option<Record>,
    new_record: &Record,
    conn: &PgConnection,
) -> Result<()> {
    if let Err(e) = update_feed_and_push_notif(old_record, new_record, conn) {
        error!("Cannot update feed or process push notif. {}", e);
    }

    // update map marker
    if let Err(e) = update_map_marker(old_record, new_record, conn) {
        error!("Cannot update map marker. {}", e);
    }

    Ok(())
}
/// Event handler when new record updates found
Event handler when new record updates found
Event handler when new record updates found
pub fn new_record_update(
    old_record: &Option<Record>,
    new_record: &Record,
    conn: &PgConnection,
) -> Result<()> {
    if let Err(e) = update_feed_and_push_notif(old_record, new_record, conn) {
        error!("Cannot update feed or process push notif. {}", e);
    }
    // update map marker
    if let Err(e) = update_map_marker(old_record, new_record, conn) {
        error!("Cannot update map marker. {}", e);
    }
    Ok(())
}
pub fn new_record_update ( old_record : & Option < Record > , new_record : & Record , conn : & PgConnection , ) -> Result < ( ) > { if let Err ( e ) = update_feed_and_push_notif ( old_record , new_record , conn ) { error ! ( " " e ) ; } // update map marker if let Err ( e ) = update_map_marker ( old_record , new_record , conn ) { error ! ( " " e ) ; } Ok ( ( ) ) }
Event handler when new record updates found
Event handler when new record updates found
old_record
&Option<Record>
new_record
&Record
conn
&PgConnection
old_record
&Option<Record>
new_record
&Record
conn
&PgConnection