More changes for db migration

This commit is contained in:
Jonathan Cremin 2016-08-07 14:38:05 +01:00
parent de0284e48a
commit 889dc02945
33 changed files with 740 additions and 100 deletions

View file

@ -20,7 +20,11 @@ export function* token() {
}
export function* transaction() {
const transactions = yield models.transaction.findAll({ userId: this.user.id });
const transactions = yield models.transaction.findAll({
where: {
userId: this.user.id,
},
});
this.body = transactions.map((item) => {
return {