removeToDB method

Future<void> removeToDB(
  1. String mid
)

Implementation

Future<void> removeToDB(String mid) async {
  try {
    //await HycopFactory.dataBase!.removeData(collectionId, mid);
    await HycopFactory.dataBase!.removeModel(collectionId, mid);
  } catch (e) {
    logger.severe('databaseError', e);
    throw HycopException(message: 'databaseError', exception: e as Exception);
  }
}