Skip to content

Commit

Permalink
[INLONG-4181][Manager] Fix transform update API (apache#4182)
Browse files Browse the repository at this point in the history
  • Loading branch information
kipshi authored May 12, 2022
1 parent 76b9c64 commit 3973072
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ public boolean update(TransformRequest transformRequest, String operator) {
transformEntity.setVersion(transformEntity.getVersion() + 1);
Date now = new Date();
transformEntity.setModifyTime(now);
boolean isUpdate = transformEntityMapper.updateByIdSelective(transformEntity) == transformEntity.getId();
transformEntityMapper.updateByIdSelective(transformEntity);
updateFieldOpt(transformEntity, transformRequest.getFieldList());
return isUpdate;
return true;
}

@Override
Expand Down

0 comments on commit 3973072

Please sign in to comment.