()
| 25 | } |
| 26 | |
| 27 | initialize () { |
| 28 | if (!me.isAdmin()) { return super.initialize() } |
| 29 | this.startDateRange = new Date() |
| 30 | this.endDateRange = new Date() |
| 31 | this.endDateRange.setUTCFullYear(this.endDateRange.getUTCFullYear() + 2) |
| 32 | this.supermodel.addRequestResource({ |
| 33 | url: '/db/prepaid/-/active-schools', |
| 34 | method: 'GET', |
| 35 | success: ({ prepaidActivityMap, schoolPrepaidsMap }) => { |
| 36 | return this.updateSchools(prepaidActivityMap, schoolPrepaidsMap) |
| 37 | } |
| 38 | }, 0).load() |
| 39 | return super.initialize() |
| 40 | } |
| 41 | |
| 42 | updateSchools (prepaidActivityMap, schoolPrepaidsMap) { |
| 43 | let activity, endDate, max, prepaids, used |
nothing calls this directly
no test coverage detected