Fixed issue w/ events w/ long descriptions
+ `event_desc` field was too small in the databasemaster
parent
250b05405f
commit
c855d6e568
|
@ -0,0 +1,2 @@
|
||||||
|
-- This file should undo anything in `up.sql`
|
||||||
|
ALTER TABLE events MODIFY event_desc VARCHAR(255) ;
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- Your SQL goes here
|
||||||
|
ALTER TABLE events MODIFY event_desc VARCHAR(2050);
|
|
@ -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) {
|
let event = match get_event_by_msg_id(db_link, message_id) {
|
||||||
Ok(event) => event,
|
Ok(event) => event,
|
||||||
Err(_) => {
|
Err(e) => {
|
||||||
|
error!("Error getting event from reaction {}", e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue