|
|
|
@ -47,6 +47,7 @@ export class ListeOpCommercialComponent implements OnInit, OnDestroy {
|
|
|
|
|
(auth) => {
|
|
|
|
|
if (auth) {
|
|
|
|
|
// Admin
|
|
|
|
|
console.log('ououou admin: ' + auth.uid);
|
|
|
|
|
this.adminData = this.afDb.list('/Admin/', {
|
|
|
|
|
query: {
|
|
|
|
|
orderByChild: 'uid',
|
|
|
|
@ -56,6 +57,7 @@ export class ListeOpCommercialComponent implements OnInit, OnDestroy {
|
|
|
|
|
);
|
|
|
|
|
this.adminData.forEach(avantage => {
|
|
|
|
|
avantage.forEach(elementavantage => {
|
|
|
|
|
console.log('elementavantage' + elementavantage.email);
|
|
|
|
|
this.admin = elementavantage;
|
|
|
|
|
console.log(this.admin.avantageCumule);
|
|
|
|
|
});
|
|
|
|
|