set account id on fetch
This commit is contained in:
parent
14070ac5c4
commit
6e1a0a6ad2
@ -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>>();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user