cleanWaterLine method

Future<void> cleanWaterLine()

Implementation

Future<void> cleanWaterLine() async {
  if(Warden.isClient(localWardenType)) {
    try {
      await waterLineDao.deleteBelowLatestTs(WaterState.SERVER_APPROVED);
    } on SqlException catch(e) {
      if(e.sqlExceptionEnum==SqlExceptionEnum.ENTRY_NOT_FOUND) {
        print("WS $e");
      }
    }
  }
}