feat(mobile): people sync (#19777)
* feat(mobile): drift people sync * merge main --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ class PersonService {
|
||||
this._assetRepository,
|
||||
);
|
||||
|
||||
Future<List<Person>> getAllPeople() async {
|
||||
Future<List<PersonDto>> getAllPeople() async {
|
||||
try {
|
||||
return await _personApiRepository.getAll();
|
||||
} catch (error, stack) {
|
||||
@@ -48,7 +48,7 @@ class PersonService {
|
||||
return [];
|
||||
}
|
||||
|
||||
Future<Person?> updateName(String id, String name) async {
|
||||
Future<PersonDto?> updateName(String id, String name) async {
|
||||
try {
|
||||
return await _personApiRepository.update(id, name: name);
|
||||
} catch (error, stack) {
|
||||
|
||||
Reference in New Issue
Block a user