createAllCalibre method

  1. @action
Future<int> createAllCalibre(
  1. List<CalibreWeebi<ArticleRawAbstract>> data
)

Implementation

@action
Future<int> createAllCalibre(List<CalibreWeebi> data) async {
  for (final calibre in data) {
    await _createCalibreServer(calibre);
  }
  // if sending data goes wrong we do not persist in queue but stop the action
  await _articlesService.createAllCalibreRpc.request(data);
  calibresFull.addAll(data);
  _calibres.addAll(data);
  return data.length;
}