init
This commit is contained in:
@@ -13,8 +13,6 @@ pub fn channel_model_to_channel_response(model: channel::Model) -> ChannelRespon
|
||||
name: model.name,
|
||||
created_at: model.created_at,
|
||||
updated_at: model.updated_at,
|
||||
default_channel_permissions: model.default_channel_permissions.map(|p| p as u64),
|
||||
default_voice_permissions: model.default_voice_permissions.map(|p| p as u64),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,8 +24,6 @@ pub fn create_request_to_am(req: CreateChannelRequest) -> channel::ActiveModel {
|
||||
position: Set(req.position),
|
||||
channel_type: Set(req.channel_type),
|
||||
name: Set(req.name),
|
||||
default_channel_permissions: Set(req.default_channel_permissions.map(|p| p as i64)),
|
||||
default_voice_permissions: Set(req.default_voice_permissions.map(|p| p as i64)),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
@@ -40,8 +36,6 @@ pub fn update_request_to_am(id: Uuid, req: UpdateChannelRequest) -> channel::Act
|
||||
position: Set(req.position),
|
||||
channel_type: Set(req.channel_type),
|
||||
name: Set(req.name),
|
||||
default_channel_permissions: Set(req.default_channel_permissions.map(|p| p as i64)),
|
||||
default_voice_permissions: Set(req.default_voice_permissions.map(|p| p as i64)),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user