VampireAchao commented on code in PR #3615:
URL: 
https://github.com/apache/incubator-streampark/pull/3615#discussion_r1545591627


##########
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/system/service/impl/AccessTokenServiceImpl.java:
##########
@@ -116,14 +117,22 @@ public RestResponse toggleToken(Long tokenId) {
             ? AccessToken.STATUS_DISABLE
             : AccessToken.STATUS_ENABLE;
 
-    AccessToken updateObj = new AccessToken();
-    updateObj.setStatus(status);
-    updateObj.setId(tokenId);
-    return RestResponse.success(this.updateById(updateObj));
+    tokenInfo.setStatus(status);
+    return RestResponse.success(this.updateById(tokenInfo));
   }
 
   @Override
   public AccessToken getByUserId(Long userId) {
     return baseMapper.selectByUserId(userId);
   }
+
+  @Override
+  public boolean updateById(AccessToken entity) {

Review Comment:
   I do not understand



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to