Skip to content

Commit 6a44229

Browse files
committed
used async/await
1 parent 5a2317f commit 6a44229

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/routes/account/billing-info/invoices.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import moment from 'moment';
44

55
export default Route.extend({
66
async model() {
7-
let filterOptions = [];
87
filterOptions = [
98
{
109
and: [
@@ -21,14 +20,14 @@ export default Route.extend({
2120
]
2221
}
2322
];
24-
return RSVP.hash({
25-
eventInvoices: this.store.query('event-invoice', {
23+
return {
24+
eventInvoices: await this.store.query('event-invoice', {
2625
include: 'event'
2726
}),
28-
upcomingInvoices: this.store.query('event-invoice', {
27+
upcomingInvoices: await this.store.query('event-invoice', {
2928
filter : filterOptions,
3029
include : 'event'
3130
})
32-
});
31+
};
3332
}
3433
});

0 commit comments

Comments
 (0)