enviroment -> environment
This commit is contained in:
parent
31689c09e5
commit
6503dd51dd
6 changed files with 14 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue