enviroment -> environment

This commit is contained in:
Mikayla 2024-01-10 22:57:58 -08:00
parent 31689c09e5
commit 6503dd51dd
No known key found for this signature in database
6 changed files with 14 additions and 12 deletions

View file

@ -1180,7 +1180,7 @@ impl Database {
.await?;
let room_id = if let Some(room) = room {
if let Some(env) = room.enviroment {
if let Some(env) = room.environment {
if &env != environment {
Err(anyhow!("must join using the {} release", env))?;
}
@ -1190,7 +1190,7 @@ impl Database {
let result = room::Entity::insert(room::ActiveModel {
channel_id: ActiveValue::Set(Some(channel_id)),
live_kit_room: ActiveValue::Set(live_kit_room.to_string()),
enviroment: ActiveValue::Set(Some(environment.to_string())),
environment: ActiveValue::Set(Some(environment.to_string())),
..Default::default()
})
.exec(&*tx)