syncServices method

Future<void> syncServices()

Synchronize List<ServiceEntry> of worker.

TODO: Services usually updated once per year, and before calling this function we should check: is it really necessary, i.e. is servicesOf empty.

This function also called from checkAllServicesExist, if there is a clientsPlanOf with wrong ClientPlan.servId.

Implementation

Future<void> syncServices() async {
  await ref.watch(httpProvider(apiKey, urlServices).notifier).update();
}