update method

Future<int> update(
  1. String? mid,
  2. String? status
)

Implementation

Future<int> update(String? mid, String? status) async {
  // FIXME: 暂不支持web
  if (BytedeskUtils.isWeb) {
    return 0;
  }
  return await database!.rawUpdate(
      'UPDATE $tableMessage SET $columnStatus = ? WHERE $columnMid = ?',
      [status, mid]);
}