diff options
| author | Nathan Perry <np@nathanperry.dev> | 2022-11-28 10:59:46 -0500 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2022-11-28 10:59:46 -0500 |
| commit | d649248b17cd3ac20a499464b559c7d83e9236fb (patch) | |
| tree | bd12e1c1850dd9578727828cb1983c16ce8995b4 /src/commands/meme/mod.rs | |
| parent | 20b5cd1498fcd0e03e7c92dd40e78cdb8bc35b8b (diff) | |
db: run migrations in db connect, upgrade diesel
Diffstat (limited to 'src/commands/meme/mod.rs')
| -rw-r--r-- | src/commands/meme/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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::<u32>() % 25 == 0; |
