We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a2317f commit 6a44229Copy full SHA for 6a44229
app/routes/account/billing-info/invoices.js
@@ -4,7 +4,6 @@ import moment from 'moment';
4
5
export default Route.extend({
6
async model() {
7
- let filterOptions = [];
8
filterOptions = [
9
{
10
and: [
@@ -21,14 +20,14 @@ export default Route.extend({
21
20
]
22
}
23
];
24
- return RSVP.hash({
25
- eventInvoices: this.store.query('event-invoice', {
+ return {
+ eventInvoices: await this.store.query('event-invoice', {
26
include: 'event'
27
}),
28
- upcomingInvoices: this.store.query('event-invoice', {
+ upcomingInvoices: await this.store.query('event-invoice', {
29
filter : filterOptions,
30
include : 'event'
31
})
32
- });
+ };
33
34
});
0 commit comments