Verified Commit c0b3c92e authored by Mathias B.'s avatar Mathias B.
Browse files

Correction de l'oubli d'un paramètre dans la base de données

parent 8f3fc065
......@@ -86,11 +86,13 @@ impl ConfigRepository {
#[instrument]
pub async fn update_language(guild_id: GuildId, new_language: Language) -> PostgreSQLResult<()> {
let db = DatabaseClient::get();
let guild_id: i64 = guild_id.into();
db.execute(
include_str!("../files/sql/config/update_language.sql"),
&[
&new_language.to_string()
&new_language.to_string(),
&guild_id
]
).await?;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment