fix
This commit is contained in:
parent
b0bae64efc
commit
58150002e6
1 changed files with 2 additions and 2 deletions
|
@ -130,11 +130,11 @@ macro_rules! reference_of {
|
|||
($model:ident, $id:ident) => {{
|
||||
$model::get_partial($id, serde_json::json!({}))
|
||||
.await
|
||||
.map(|x| x.reference())
|
||||
.map(|x| mongod::Referencable::reference(&x))
|
||||
}};
|
||||
($model:ident, $id:literal) => {{
|
||||
$model::get_partial($id, serde_json::json!({}))
|
||||
.await
|
||||
.map(|x| x.reference())
|
||||
.map(|x| mongod::Referencable::reference(&x))
|
||||
}};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue