set account id on fetch

This commit is contained in:
ntr 2019-09-20 16:14:12 +10:00
parent 14070ac5c4
commit 6e1a0a6ad2

View File

@ -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))
.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))
.collect::<Vec<Construct>>();