From d649248b17cd3ac20a499464b559c7d83e9236fb Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Mon, 28 Nov 2022 10:59:46 -0500 Subject: db: run migrations in db connect, upgrade diesel --- src/commands/meme/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/meme/mod.rs') diff --git a/src/commands/meme/mod.rs b/src/commands/meme/mod.rs index ee39d55..d816a93 100644 --- a/src/commands/meme/mod.rs +++ b/src/commands/meme/mod.rs @@ -51,7 +51,7 @@ group!({ ], }); -fn send_meme(ctx: &Context, t: &Meme, conn: &PgConnection, msg: &Message) -> Result<()> { +fn send_meme(ctx: &Context, t: &Meme, conn: &mut PgConnection, msg: &Message) -> Result<()> { let should_tts = t.content.as_ref().map(|t| t.len() > 0).unwrap_or(false) && thread_rng().gen::() % 25 == 0; -- cgit v1.3.1