import { Meteor } from 'meteor/meteor';

import { FederationConfig } from '../schema.js';

// Publication who send back everything, use it carrefully
Meteor.publish('federationConfig', () => {
	return FederationConfig.find();
});

// Publication who send back only the level of the categories
Meteor.publish('championshipLevel', () => {
	return FederationConfig.find({ def: 'level' });
});

// Publication who send back only the group of categories
Meteor.publish('championshipGroup', () => {
	return FederationConfig.find({ def: 'group' });
});

@@ -88,67 +88,8 @@
 ';%0A%0A
-// Publication who send back everything, use it carrefully%0A
 Mete
@@ -100,17 +100,28 @@
 ublish('
-f
+retrieveAllF
 ederatio
@@ -180,70 +180,8 @@
 );%0A%0A
-// Publication who send back only the level of the categories%0A
 Mete
@@ -192,28 +192,27 @@
 ublish('
-championship
+retrieveAll
 Level', 
@@ -351,20 +351,19 @@
 sh('
-championship
+retrieveAll
 Grou

Change publications name