Skip to content

Commit 27cbedb

Browse files
committed
changed mapping in tests
1 parent 5d24bb5 commit 27cbedb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/db2.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,12 @@ const map = rdb.map(x => ({
5353
})).map(x => ({
5454
orderLine: x.orderLine.map(({ hasMany }) => ({
5555
packages: hasMany(x.package).by('lineId')
56-
}))
57-
})).map(x => ({
56+
})),
5857
order: x.order.map(({ hasOne, hasMany, references }) => ({
5958
customer: references(x.customer).by('customerId'),
6059
deliveryAddress: hasOne(x.deliveryAddress).by('orderId'),
6160
lines: hasMany(x.orderLine).by('orderId')
6261
}))
63-
6462
}));
6563

6664
module.exports = map;

0 commit comments

Comments
 (0)