set account id on fetch
This commit is contained in:
@@ -357,6 +357,10 @@ pub fn constructs(tx: &mut Transaction, account: &Account) -> Result<Vec<Constru
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.map(|mut sk| {
|
||||||
|
sk.account = account.id;
|
||||||
|
sk
|
||||||
|
})
|
||||||
.map(|sk| Construct::from_skeleton(&sk))
|
.map(|sk| Construct::from_skeleton(&sk))
|
||||||
.collect::<Vec<Construct>>();
|
.collect::<Vec<Construct>>();
|
||||||
|
|
||||||
@@ -386,6 +390,10 @@ pub fn team(tx: &mut Transaction, account: &Account) -> Result<Vec<Construct>, E
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.map(|mut sk| {
|
||||||
|
sk.account = account.id;
|
||||||
|
sk
|
||||||
|
})
|
||||||
.map(|sk| Construct::from_skeleton(&sk))
|
.map(|sk| Construct::from_skeleton(&sk))
|
||||||
.collect::<Vec<Construct>>();
|
.collect::<Vec<Construct>>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user