fix(db): satisfy workspace clippy

Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
This commit is contained in:
Brother Darryl
2026-08-11 11:12:39 -04:00
parent 6bc749c572
commit 82e5ec04d5

View File

@@ -804,7 +804,7 @@ pub(crate) async fn create_channel_with_id(
let inserted = sqlx::query(
"INSERT INTO channels (id, community_id, name, channel_type, visibility, description, created_by, ttl_seconds, ttl_deadline) VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, CASE WHEN ?8 IS NULL THEN NULL ELSE unixepoch() + ?8 END) ON CONFLICT DO NOTHING",
)
.bind(channel_id.to_string()).bind(community.as_uuid().to_string()).bind(&name)
.bind(channel_id.to_string()).bind(community.as_uuid().to_string()).bind(name)
.bind(channel_type.as_str()).bind(visibility.as_str()).bind(description).bind(created_by)
.bind(ttl_seconds).execute(&mut *tx).await?.rows_affected() == 1;
if inserted {