add disable customer function

This commit is contained in:
Sai Naw Wun
2020-10-17 01:40:24 +06:30
parent 13fa1903bc
commit fa9738f307
28 changed files with 196 additions and 205 deletions

View File

@@ -1,7 +1,7 @@
import 'dart:async';
import 'package:fcs/data/services/services.dart';
import 'package:fcs/domain/vo/contact.dart';
import 'package:fcs/helpers/firebase_helper.dart';
import 'package:fcs/pages/main/model/base_model.dart';
import 'package:logging/logging.dart';
@@ -10,8 +10,7 @@ class ContactModel extends BaseModel {
Future<void> saveContact(Contact contact) async {
await request("/contact", "PUT",
payload: contact.toMap(),
token: await Services.instance.authService.getToken());
payload: contact.toMap(), token: await getToken());
notifyListeners();
}
}