2019-10-09 22:52:55 -04:00
|
|
|
import Group from "discourse/plugins/discourse-patrons/discourse/models/group";
|
|
|
|
import Plan from "discourse/plugins/discourse-patrons/discourse/models/plan";
|
|
|
|
|
|
|
|
export default Discourse.Route.extend({
|
|
|
|
model() {
|
|
|
|
const group = Group.find();
|
2019-10-16 21:07:06 -04:00
|
|
|
const plans = Plan.findAll().then(results => results.map(p => p.id));
|
|
|
|
|
2019-10-09 22:52:55 -04:00
|
|
|
return Ember.RSVP.hash({ group, plans });
|
|
|
|
}
|
|
|
|
});
|