updateToDB method

Future<void> updateToDB(
  1. String mid,
  2. Map<String, dynamic> updateDataMap
)

Implementation

Future<void> updateToDB(String mid, Map<String, dynamic> updateDataMap) async {
  try {
    //await HycopFactory.dataBase!.setData(collectionId, model.mid, model.toMap());
    await HycopFactory.dataBase!.updateData(collectionId, mid, updateDataMap);
  } catch (e) {
    logger.severe('databaseError', e);
    throw HycopException(message: 'databaseError', exception: e as Exception);
  }
}