Fixed issue w/ events w/ long descriptions

+ `event_desc` field was too small in the database
master
Joey Hines 2020-07-09 22:36:04 -05:00
parent 250b05405f
commit c855d6e568
3 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
ALTER TABLE events MODIFY event_desc VARCHAR(255) ;

View File

@ -0,0 +1,2 @@
-- Your SQL goes here
ALTER TABLE events MODIFY event_desc VARCHAR(2050);

View File

@ -42,7 +42,8 @@ pub fn send_message_to_reaction_users(ctx: &Context, reaction: &Reaction, msg_te
let event = match get_event_by_msg_id(db_link, message_id) {
Ok(event) => event,
Err(_) => {
Err(e) => {
error!("Error getting event from reaction {}", e);
return;
}
};