TF-801 Add data layer for update vacation

This commit is contained in:
dab246
2022-08-17 20:22:59 +07:00
committed by Dat H. Pham
parent d3b3be83b6
commit f3e6d892d8
4 changed files with 43 additions and 0 deletions
@@ -126,4 +126,13 @@ class ManageAccountDataSourceImpl extends ManageAccountDataSource {
throw error;
});
}
@override
Future<List<VacationResponse>> updateVacation(AccountId accountId, VacationResponse vacationResponse) {
return Future.sync(() async {
return await manageAccountAPI.updateVacation(accountId, vacationResponse);
}).catchError((error) {
throw error;
});
}
}