forked from jmug/stoatchat
Move all entities to their own folder.
This commit is contained in:
19
src/database/guards/mod.rs
Normal file
19
src/database/guards/mod.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
// ! FIXME
|
||||
impl<'r> FromParam<'r> for User {
|
||||
type Error = &'r RawStr;
|
||||
|
||||
fn from_param(param: &'r RawStr) -> Result<Self, Self::Error> {
|
||||
Err(param)
|
||||
/*if let Ok(result) = fetch_channel(param).await {
|
||||
if let Some(channel) = result {
|
||||
Ok(channel)
|
||||
} else {
|
||||
Err(param)
|
||||
}
|
||||
} else {
|
||||
Err(param)
|
||||
}*/
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user